summaryrefslogtreecommitdiff
path: root/includes/generic-includes.sh
diff options
context:
space:
mode:
Diffstat (limited to 'includes/generic-includes.sh')
-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 d3db9bf..983853a 100644
--- a/includes/generic-includes.sh
+++ b/includes/generic-includes.sh
@@ -17,7 +17,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"