From 75bd10e6c007833a38aee1e7da3d2dbf1fc1e108 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 3 Oct 2018 15:58:40 -0600 Subject: [PATCH] Changed checkExist ff to check for actual file instead of file/dir --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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