diff options
author | nick <nick@debian.hws.edu> | 2009-04-19 22:44:06 -0500 |
---|---|---|
committer | nick <nick@debian.hws.edu> | 2009-04-19 22:44:06 -0500 |
commit | 8b5042f40a04da5ecb01a28029ad8121b27a0de4 (patch) | |
tree | 1f41298a91abcd3bf4fc24467e15a06d3f84d73a /auto-installer.sh | |
parent | 1bbff3ce1b261ef9cb6ba217ca0d8fcb54971513 (diff) | |
download | gemrb-gameinstallers-8b5042f40a04da5ecb01a28029ad8121b27a0de4.tar.bz2 gemrb-gameinstallers-8b5042f40a04da5ecb01a28029ad8121b27a0de4.zip |
Establish safe TARGETDIR, quit if we can't.
Diffstat (limited to 'auto-installer.sh')
-rwxr-xr-x | auto-installer.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/auto-installer.sh b/auto-installer.sh index d79f8af..4295230 100755 --- a/auto-installer.sh +++ b/auto-installer.sh @@ -68,6 +68,9 @@ case "$CDMD5" in ;; esac +[ -z "$TARGETDIR" ] && [ -n "$SHORTGAMENAME" ] && export TARGETDIR="$PWD/$SHORTGAMENAME" +[ -z "$TARGETDIR" ] && diequietly + echo "$FULLGAMENAME detected, installing" $MINSCRIPT -i "$TARGETDIR" -c "$CDMOUNT" 1>/dev/null || diequietly |