Test for any file type when checking the existence of the target
authorAlexander Barton <alex@barton.de>
Wed, 8 Apr 2015 09:41:35 +0000 (11:41 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 8 Apr 2015 09:41:35 +0000 (11:41 +0200)
appify.sh

index cdd3d40..45c6ea2 100755 (executable)
--- 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