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-patch-baldurdash-fix.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-patch-baldurdash-fix.sh')
-rwxr-xr-x | bg1/install-patch-baldurdash-fix.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bg1/install-patch-baldurdash-fix.sh b/bg1/install-patch-baldurdash-fix.sh index be9b3be..a4c2122 100755 --- a/bg1/install-patch-baldurdash-fix.sh +++ b/bg1/install-patch-baldurdash-fix.sh @@ -17,8 +17,8 @@ # BG1/TOTSC Baldurdash fix pack scriptdir="$(dirname $0)"/.. -source "$scriptdir/includes/generic-includes.sh" -source "$scriptdir/includes/patch-includes.sh" +source "${scriptdir}/includes/generic-includes.sh" +source "${scriptdir}/includes/patch-includes.sh" parseargs "$@" @@ -30,9 +30,9 @@ getpatch http://www.baldurdash.org/LargeDownloads/BG1FixPack11.exe # unzip complains unnecessarily about skipping non-zip # part so don't print errors or die on failure -unzip -L $TMPDIR/BG1FixPack11.exe -d $TMPDIR 2>/dev/null -rm $TMPDIR/BG1FixPack11.exe $TMPDIR/bg1fixpack11readme.txt -cp $TMPDIR/* "$TARGETDIR/override/" || diesoftly +unzip -L "${TMPDIR}/BG1FixPack11.exe" -d "$TMPDIR" 2>/dev/null +rm "${TMPDIR}/BG1FixPack11.exe" "${TMPDIR}/bg1fixpack11readme.txt" +cp "${TMPDIR}/"* "${TARGETDIR}/override/" || diesoftly cleanuptmp setperms "$TARGETDIR" |