diff options
author | Nick Daly <myownlittlworld@hotmail.com> | 2009-06-07 21:17:32 -0500 |
---|---|---|
committer | Nick Daly <myownlittlworld@hotmail.com> | 2009-06-07 21:17:32 -0500 |
commit | 962f28c581d17237b1a85b4c7771877d8c35a98a (patch) | |
tree | d66772dad40ce21d4e5db80d879a898560dfa0fe /includes | |
parent | 6be07e1cda9767cf1f0fcab76ae0399ca9121373 (diff) | |
download | gemrb-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.sh | 8 |
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" |