]> arthur.barton.de Git - appify.git/commitdiff
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 cdd3d4044f558a44a2fb1c7bc66fd3975ef16562..45c6ea2c75104dc7d3261bab03c9531da1da5d8a 100755 (executable)
--- a/appify.sh
+++ b/appify.sh
@@ -43,7 +43,7 @@ fi
 SCRIPT=$1
 TARGET=$2
 
 SCRIPT=$1
 TARGET=$2
 
-if [ -d "$TARGET" ]; then
+if [ -e "$TARGET" ]; then
     echo "$TARGET exists, exiting" 1>&2
     exit 3
 fi
     echo "$TARGET exists, exiting" 1>&2
     exit 3
 fi