no-inc-recursive

This commit is contained in:
pvincent
2021-08-05 16:14:08 +04:00
parent f8dd6d543a
commit 61aef04840
+1 -1
View File
@@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
[ ! -d "$1" ] && echo "SOURCE FOLDER $1 not reachable!" && exit -1 [ ! -d "$1" ] && echo "SOURCE FOLDER $1 not reachable!" && exit -1
rsync -a --info=progress2 --remove-source-files "$1" "$2" && find "$1" -type d -empty -delete rsync -a --no-inc-recursive --info=progress2 --remove-source-files "$1" "$2" && find "$1" -type d -empty -delete