1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00
Files
esp32-nmea2000-obp60/webinstall/watch.sh
2023-09-03 16:24:10 +02:00

13 lines
230 B
Bash
Executable File

#! /bin/sh
if [ "$1" = "" ] ; then
echo "usage: $0 targetDir"
exit 1
fi
while true
do
inotifywait -e modify -e create -e delete -r `dirname $0`
echo sync
rsync -rav --exclude=\*.swp --exclude=\*~ `dirname $0`/ $1
done