summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authornick <nick@debian.hws.edu>2009-04-19 22:44:06 -0500
committernick <nick@debian.hws.edu>2009-04-19 22:44:06 -0500
commit8b5042f40a04da5ecb01a28029ad8121b27a0de4 (patch)
tree1f41298a91abcd3bf4fc24467e15a06d3f84d73a /includes
parent1bbff3ce1b261ef9cb6ba217ca0d8fcb54971513 (diff)
downloadgemrb-gameinstallers-8b5042f40a04da5ecb01a28029ad8121b27a0de4.tar.bz2
gemrb-gameinstallers-8b5042f40a04da5ecb01a28029ad8121b27a0de4.zip
Establish safe TARGETDIR, quit if we can't.
Diffstat (limited to 'includes')
-rw-r--r--includes/generic-includes.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/generic-includes.sh b/includes/generic-includes.sh
index e14138f..d4dcdb4 100644
--- a/includes/generic-includes.sh
+++ b/includes/generic-includes.sh
@@ -2,7 +2,7 @@
[ -z "$TMPDIR" ] && export TMPDIR="/tmp/iepatch"
-[ -z "$TARGETDIR" ] && export TARGETDIR="$PWD/$SHORTGAMENAME"
+[ -z "$TARGETDIR" ] && [ -e "$SHORTGAMENAME" ] && export TARGETDIR="$PWD/$SHORTGAMENAME"
[ -z "$LANGUAGE" ] && export LANGUAGE="English"