From 5e967fb569d7f15d8f7fa6aa64282b6bc55440a7 Mon Sep 17 00:00:00 2001 From: Amber Date: Mon, 6 Sep 2021 13:20:42 +0200 Subject: [PATCH] fix move directories --- syncloop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncloop.sh b/syncloop.sh index b6cdc37..0798da3 100755 --- a/syncloop.sh +++ b/syncloop.sh @@ -119,7 +119,7 @@ synccycle & # exclude swp,swpx and 4913 files created by vim 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' ] || [ $action = 'MOVED_FROM' ]; then + if [ $action = 'DELETE' ] || [ $action = 'DELETE,ISDIR' ] || [ $action = 'MOVED_FROM' ] || [ $action = 'MOVED_FROM,ISDIR' ]; then echo "Enqueue delete: $dir$file" flock $lock_deletes echo $dir$file | sed -e "s~$LOCALPATH~$REMOTERELATIVEPATH~g" | tee -a ${TMPQUEUEDELETES}