diff --git a/backup.sh b/backup.sh index 3aa0822..3073e4f 100755 --- a/backup.sh +++ b/backup.sh @@ -50,7 +50,7 @@ function quit { function checkExist { if [ "$1" = "ff" ]; then # find file - if [ -e "$2" ]; then + if [ -f "$2" ]; then # found return 0 else