From a6055bfb9b9847021ab93cddfdc31357b2c7fc38 Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 1 May 2009 09:40:15 +0100 Subject: Fixed targetdir setting (thanks Nick Daly) Fixed a problem with setting targetdir which could result in the current directory being deleted. --- includes/generic-includes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') 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" -- cgit v1.2.3