diff options
author | nick <myownlittlworld@hotmail.com> | 2009-05-25 18:26:27 -0500 |
---|---|---|
committer | nick <myownlittlworld@hotmail.com> | 2009-05-25 18:26:27 -0500 |
commit | 0d14bb784aa524de00c88e9a25bb812c5339cc43 (patch) | |
tree | 4e4d23f1a015fe0d6c6a02626f20fb7b9555de28 /bg1/install-5cd-extra.sh | |
parent | 6ec9844921a2a465e02c26e0a09344aaff70fe93 (diff) | |
download | gemrb-gameinstallers-0d14bb784aa524de00c88e9a25bb812c5339cc43.tar.bz2 gemrb-gameinstallers-0d14bb784aa524de00c88e9a25bb812c5339cc43.zip |
Safely escaped all potentially unsafe variables.
And probably a couple already safe ones too.
Diffstat (limited to 'bg1/install-5cd-extra.sh')
-rwxr-xr-x | bg1/install-5cd-extra.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bg1/install-5cd-extra.sh b/bg1/install-5cd-extra.sh index 9e6847d..df5dbef 100755 --- a/bg1/install-5cd-extra.sh +++ b/bg1/install-5cd-extra.sh @@ -17,8 +17,8 @@ # Extra Baldur's Gate (5CD International version) content (so CDs aren't needed) scriptdir="$(dirname $0)"/.. -source "$scriptdir/includes/generic-includes.sh" -source "$scriptdir/includes/cd-includes.sh" +source "${scriptdir}/includes/generic-includes.sh" +source "${scriptdir}/includes/cd-includes.sh" parseargs "$@" @@ -31,10 +31,10 @@ for CDNUMBER in 1 2 3 4 5; do 5 ) moviesum="f19415703d3ccad01325b9338380ac7c" ;; esac - if [ $CDNUMBER -gt 1 ]; then - getcd $CDNUMBER $moviesum CD$CDNUMBER/Movies/MovieCD$CDNUMBER.bif + if [ "$CDNUMBER" -gt 1 ]; then + getcd "$CDNUMBER" "$moviesum" "CD${CDNUMBER}/Movies/MovieCD${CDNUMBER}.bif" fi - copylower "$CDMOUNT/cd$CDNUMBER/" "$TARGETDIR" + copylower "${CDMOUNT}/cd${CDNUMBER}/" "$TARGETDIR" setperms "$TARGETDIR" done |