summaryrefslogtreecommitdiff
path: root/includes/autoinstall-includes.sh
diff options
context:
space:
mode:
Diffstat (limited to 'includes/autoinstall-includes.sh')
-rw-r--r--includes/autoinstall-includes.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/autoinstall-includes.sh b/includes/autoinstall-includes.sh
index 933e731..1e9c95d 100644
--- a/includes/autoinstall-includes.sh
+++ b/includes/autoinstall-includes.sh
@@ -43,7 +43,7 @@ function recommendcfg
# usage: recommendcfg [numofcds]
if [ "$1" ]; then
- NUMOFCDS=$1
+ NUMOFCDS="$1"
else
NUMOFCDS=1
fi
@@ -55,7 +55,11 @@ function recommendcfg
LINE="GamePath=$TARGETDIR"; echo $LINE
if [ $FULLINSTALL -eq 1 ]; then
for CDNUMBER in $(seq $NUMOFCDS); do
- LINE="CD$CDNUMBER=$TARGETDIR"
+ if [ -d "${TARGETDIR}/cd${CDNUMBER}" ]; then
+ LINE="CD${CDNUMBER}=${TARGETDIR}/cd${CDNUMBER}"
+ else
+ LINE="CD$CDNUMBER=$TARGETDIR"
+ fi
echo $LINE
done
echo "GameOnCD=0"