From dad2f8163435c5b1804147ff37c54799c2c38a14 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 23 Jun 2009 11:51:19 +0100 Subject: Sanitise copying further --- bg1/install-5cd-minimal.sh | 4 ++-- pst/install-patch-official.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bg1/install-5cd-minimal.sh b/bg1/install-5cd-minimal.sh index e6be0fa..b4c522d 100755 --- a/bg1/install-5cd-minimal.sh +++ b/bg1/install-5cd-minimal.sh @@ -28,7 +28,7 @@ getcd 1 $BG1_5CD_INTL_MD5 data1.cab mkdir -p "$TARGETDIR" || die -cp "${CDMOUNT}/dialog.tlk" "$TARGETDIR" || die +copylower "${CDMOUNT}/dialog.tlk" "$TARGETDIR" || die unshield -L x "${CDMOUNT}/data1.cab" -d "$TARGETDIR" || die @@ -40,6 +40,6 @@ rm -r "${TARGETDIR}/recommended_music" "${TARGETDIR}/english_sounds" mkdir -p "${TARGETDIR}/movies" -cp "${CDMOUNT}/baldur.ico" "$TARGETDIR" || die +copylower "${CDMOUNT}/baldur.ico" "$TARGETDIR" || die setperms "$TARGETDIR" diff --git a/pst/install-patch-official.sh b/pst/install-patch-official.sh index b053e37..3cac6a1 100755 --- a/pst/install-patch-official.sh +++ b/pst/install-patch-official.sh @@ -38,7 +38,7 @@ getpatch $patch_url cabextract -L "${TMPDIR}/${patch_name}" -d "$TMPDIR" || diesoftly unshield -L x "${TMPDIR}/data1.cab" -d "$TMPDIR" || diesoftly -cp -R "${TMPDIR}/program_executable_files/"* "$TARGETDIR" || diesoftly +copylower "${TMPDIR}/program_executable_files/" "$TARGETDIR" || diesoftly cleanuptmp setperms "$TARGETDIR" -- cgit v1.2.3