Update pibackup.sh

This commit is contained in:
2022-10-08 15:44:44 -05:00
parent 611930a711
commit ebcecb0495

View File

@@ -40,9 +40,15 @@ if [ "$1" != "update" ]; then
if [ $i == $a ]; then keep=1;fi;
done;
if [ $keep == 0 ]; then rm -rf ${BackupDir}/$i; fi;
if [ $keep == 0 ]; then
echo "REMOVE: ${BackupDir}/$i"
else
echo "KEEP: ${BackupDir}/$i"
fi
done
umount ${MountPoint}
#umount ${MountPoint}
fi