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. --- pst/install-4cd-minimal.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'pst/install-4cd-minimal.sh') diff --git a/pst/install-4cd-minimal.sh b/pst/install-4cd-minimal.sh index 09cd175..8ee12dd 100755 --- a/pst/install-4cd-minimal.sh +++ b/pst/install-4cd-minimal.sh @@ -17,8 +17,8 @@ # Installs Planescape: Torment (4CD version) minimal 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 "$@" @@ -28,13 +28,13 @@ getcd 1 $PST_4CD_MD5 data1.cab mkdir -p "$TARGETDIR" || die -unshield -L x $CDMOUNT/data1.cab -d "$TARGETDIR" || die +unshield -L x "${CDMOUNT}/data1.cab" -d "$TARGETDIR" || die -cp -R "$TARGETDIR"/program_executable_files/* "$TARGETDIR" || die -rm -r "$TARGETDIR"/program_executable_files +cp -R "${TARGETDIR}/program_executable_files/"* "$TARGETDIR" || die +rm -r "${TARGETDIR}/program_executable_files" -cp $CDMOUNT/torment.ico "$TARGETDIR" || die +cp "${CDMOUNT}/torment.ico" "$TARGETDIR" || die -mkdir -p "$TARGETDIR/save" || die +mkdir -p "${TARGETDIR}/save" || die setperms "$TARGETDIR" -- cgit v1.2.3