From: Alexander Barton Date: Wed, 8 Apr 2015 09:41:35 +0000 (+0200) Subject: Test for any file type when checking the existence of the target X-Git-Url: https://arthur.barton.de/gitweb/?p=appify.git;a=commitdiff_plain;h=6106ca03cd41e11bf304fdf30bbc1c89d08d0c4c Test for any file type when checking the existence of the target --- diff --git a/appify.sh b/appify.sh index cdd3d40..45c6ea2 100755 --- a/appify.sh +++ b/appify.sh @@ -43,7 +43,7 @@ fi SCRIPT=$1 TARGET=$2 -if [ -d "$TARGET" ]; then +if [ -e "$TARGET" ]; then echo "$TARGET exists, exiting" 1>&2 exit 3 fi