projects
/
appify.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c1090d5
)
Make sure that source script exists and target app does not
author
Alexander Barton
<alex@barton.de>
Wed, 8 Apr 2015 12:03:41 +0000
(14:03 +0200)
committer
Alexander Barton
<alex@barton.de>
Wed, 8 Apr 2015 12:03:41 +0000
(14:03 +0200)
appify.sh
patch
|
blob
|
history
diff --git
a/appify.sh
b/appify.sh
index a5fe28433598e62b369ea739bfbfdfc9aeb53040..a7db78620f05e361fbf60059f9aff50c0beaf282 100755
(executable)
--- a/
appify.sh
+++ b/
appify.sh
@@
-47,8
+47,13
@@
TARGET=$2
BASENAME=`basename "$SCRIPT"`
+if [ ! -r "$SCRIPT" ]; then
+ echo "$SCRIPT isn't readable!" 1>&2
+ exit 3
+fi
+
if [ -e "$TARGET" ]; then
- echo "$TARGET exists
, exiting
" 1>&2
+ echo "$TARGET exists
!
" 1>&2
exit 3
fi