From 5553b29f951d1a1f8c0238b4d3939cb23c47ec20 Mon Sep 17 00:00:00 2001 From: Amber Date: Thu, 1 Jul 2021 17:07:12 +0200 Subject: [PATCH] adding create events --- syncloop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncloop.sh b/syncloop.sh index e7e011a..314f733 100755 --- a/syncloop.sh +++ b/syncloop.sh @@ -77,7 +77,7 @@ synccycle & # exclude swp,swpx and 4913 files created by vim # inotifywait -m -r -e close_write -e move -e delete --exclude "\.swp|\.swx|4913|.txt~" ~/googleDrive/Copy/Appunti/ -inotifywait -m -r -e close_write -e move -e delete --exclude "\.swp|\.swx|4913|.txt~" $LOCALPATH | while read dir action file; do +inotifywait -m -r -e create -e close_write -e move -e delete --exclude "\.swp|\.swx|4913|.txt~" $LOCALPATH | while read dir action file; do if [ $action = 'DELETE' ] || [ $action = 'DELETE,ISDIR' ]; then echo "Enqueue delete: $dir$file" echo $dir$file | sed -e "s~$LOCALPATH~$REMOTERELATIVEPATH~g" | tee -a ${TMPQUEUEDELETES}