summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNick Daly <myownlittlworld@hotmail.com>2009-06-07 21:17:32 -0500
committerNick Daly <myownlittlworld@hotmail.com>2009-06-07 21:17:32 -0500
commit962f28c581d17237b1a85b4c7771877d8c35a98a (patch)
treed66772dad40ce21d4e5db80d879a898560dfa0fe /includes
parent6be07e1cda9767cf1f0fcab76ae0399ca9121373 (diff)
downloadgemrb-gameinstallers-962f28c581d17237b1a85b4c7771877d8c35a98a.tar.bz2
gemrb-gameinstallers-962f28c581d17237b1a85b4c7771877d8c35a98a.zip
Corrected recommendcfg for games that require "cd#" directories.
Diffstat (limited to 'includes')
-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"