From 0d14bb784aa524de00c88e9a25bb812c5339cc43 Mon Sep 17 00:00:00 2001 From: nick Date: Mon, 25 May 2009 18:26:27 -0500 Subject: Safely escaped all potentially unsafe variables. And probably a couple already safe ones too. --- bg2/install-4cd-minimal-us.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bg2/install-4cd-minimal-us.sh') diff --git a/bg2/install-4cd-minimal-us.sh b/bg2/install-4cd-minimal-us.sh index 3f61614..e4dc0cb 100755 --- a/bg2/install-4cd-minimal-us.sh +++ b/bg2/install-4cd-minimal-us.sh @@ -19,8 +19,8 @@ # 02110-1301 USA. 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 @@ getcd 1 $BG2_4CD_US_MD5 data1.cab mkdir -p "$TARGETDIR" || die mkdir -p "${TARGETDIR}/portraits" || die -cp $CDMOUNT/baldur.ico "$TARGETDIR" || die +cp "${CDMOUNT}/baldur.ico" "$TARGETDIR" || die # FIXME: strip hd0_ from all folder names -unshield -L x $CDMOUNT/data1.cab -d "$TARGETDIR" || die +unshield -L x "${CDMOUNT}/data1.cab" -d "$TARGETDIR" || die rm -r "${TARGETDIR}/_"* # remove all the the fake directories. -- cgit v1.2.3