summaryrefslogtreecommitdiff
path: root/auto-installer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'auto-installer.sh')
-rwxr-xr-xauto-installer.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/auto-installer.sh b/auto-installer.sh
index 1fcdbc3..655bbaa 100755
--- a/auto-installer.sh
+++ b/auto-installer.sh
@@ -86,6 +86,9 @@ while [ -z "$MINSCRIPT" ]; do
esac
done
+[ -z "$TARGETDIR" ] && [ -n "$SHORTGAMENAME" ] && export TARGETDIR="$PWD/$SHORTGAMENAME"
+[ -z "$TARGETDIR" ] && diequietly
+
echo "$FULLGAMENAME detected, installing"
"$scriptdir/$MINSCRIPT" -i "$TARGETDIR" -c "$CDMOUNT" 1>/dev/null || diequietly