summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2009-05-17 15:29:25 +0100
committerNick White <git@njw.me.uk>2009-05-17 15:29:25 +0100
commit551610e89294164156e1b0787f9be9220dfc6b6e (patch)
treeb41ed4147bd8531fbd5f1044fa56e9598476a1b5 /includes
parent32a0107f411a09c132090623b66e1af7b01b4bc1 (diff)
downloadgemrb-gameinstallers-551610e89294164156e1b0787f9be9220dfc6b6e.tar.bz2
gemrb-gameinstallers-551610e89294164156e1b0787f9be9220dfc6b6e.zip
Correct and simplify config recommendation
Diffstat (limited to 'includes')
-rw-r--r--includes/autoinstall-includes.sh24
1 files changed, 9 insertions, 15 deletions
diff --git a/includes/autoinstall-includes.sh b/includes/autoinstall-includes.sh
index 7ee3024..76e8638 100644
--- a/includes/autoinstall-includes.sh
+++ b/includes/autoinstall-includes.sh
@@ -74,7 +74,7 @@ function recommendcfg
if [ "$1" ]; then
NUMOFCDS=$1
else
- NUMOFCDS=0
+ NUMOFCDS=1
fi
echo
@@ -83,22 +83,16 @@ function recommendcfg
echo
LINE="GamePath=$TARGETDIR"; echo $LINE
if [ $FULLINSTALL -eq 1 ]; then
- LINE="CD1=$TARGETDIR"; echo $LINE
- if [ $NUMOFCDS -gt 0 ]; then
- for CDNUMBER in $(seq 2 $NUMOFCDS); do
- LINE="CD$CDNUMBER=$TARGETDIR"
- echo $LINE
- done
- fi
+ for CDNUMBER in $(seq $NUMOFCDS); do
+ LINE="CD$CDNUMBER=$TARGETDIR"
+ echo $LINE
+ done
echo "GameOnCD=0"
else
- LINE="CD1=$CDMOUNT"; echo $LINE
- if [ $NUMOFCDS -gt 0 ]; then
- for CDNUMBER in $(seq 2 $NUMOFCDS); do
- LINE="CD$CDNUMBER=$CDMOUNT/cd$CDNUMBER"
- echo $LINE
- done
- fi
+ for CDNUMBER in $(seq $NUMOFCDS); do
+ LINE="CD$CDNUMBER=$CDMOUNT/cd$CDNUMBER"
+ echo $LINE
+ done
echo "GameOnCD=1"
fi
}