From 3603dfcb5d12e19b75dccbc2a621adb83fd7adea Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 17 Apr 2009 17:10:07 +0100 Subject: Move overridden die for patch to new general function: diesoftly --- totsc/install-patch-baldurdash-fix.sh | 2 +- totsc/install-patch-baldurdash-text.sh | 4 ++-- totsc/install-patch-intl.sh | 6 +++--- totsc/install-patch-uk.sh | 6 +++--- totsc/install-patch-us.sh | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) (limited to 'totsc') diff --git a/totsc/install-patch-baldurdash-fix.sh b/totsc/install-patch-baldurdash-fix.sh index ef00260..be9b3be 100755 --- a/totsc/install-patch-baldurdash-fix.sh +++ b/totsc/install-patch-baldurdash-fix.sh @@ -32,7 +32,7 @@ getpatch http://www.baldurdash.org/LargeDownloads/BG1FixPack11.exe # 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/" || die +cp $TMPDIR/* "$TARGETDIR/override/" || diesoftly cleanuptmp setperms "$TARGETDIR" diff --git a/totsc/install-patch-baldurdash-text.sh b/totsc/install-patch-baldurdash-text.sh index af7a861..36e4304 100755 --- a/totsc/install-patch-baldurdash-text.sh +++ b/totsc/install-patch-baldurdash-text.sh @@ -24,7 +24,7 @@ parseargs "$@" if [ "$LANGUAGE" != "English" ]; then echo "The Baldurdash text pack is only available in English" - die + diesoftly fi checkforbin unzip wget @@ -36,7 +36,7 @@ getpatch http://www.baldurdash.org/LargeDownloads/BG1TOSCGameTextUpdate11.exe # unzip complains unnecessarily about skipping non-zip # part so don't print errors or die on failure unzip -L $TMPDIR/BG1TOSCGameTextUpdate11.exe -d $TMPDIR 2>/dev/null -cp $TMPDIR/dialog.tlk "$TARGETDIR/" || die +cp $TMPDIR/dialog.tlk "$TARGETDIR/" || diesoftly cleanuptmp setperms "$TARGETDIR" diff --git a/totsc/install-patch-intl.sh b/totsc/install-patch-intl.sh index 1f25619..19c2b15 100755 --- a/totsc/install-patch-intl.sh +++ b/totsc/install-patch-intl.sh @@ -28,10 +28,10 @@ setuptmp getpatch http://downloads.bioware.com/baldursgate1/BGTalesIntl5512.exe -cabextract -L $TMPDIR/BGTalesIntl5512.exe -d $TMPDIR || die -unshield -L x $TMPDIR/data1.cab -d $TMPDIR || die +cabextract -L $TMPDIR/BGTalesIntl5512.exe -d $TMPDIR || diesoftly +unshield -L x $TMPDIR/data1.cab -d $TMPDIR || diesoftly -cp -R $TMPDIR/minimumdata/* "$TARGETDIR" || die +cp -R $TMPDIR/minimumdata/* "$TARGETDIR" || diesoftly cleanuptmp setperms "$TARGETDIR" diff --git a/totsc/install-patch-uk.sh b/totsc/install-patch-uk.sh index 144ac66..09ea70c 100755 --- a/totsc/install-patch-uk.sh +++ b/totsc/install-patch-uk.sh @@ -28,10 +28,10 @@ setuptmp getpatch http://downloads.bioware.com/baldursgate1/BGTalesUK5512.exe -cabextract -L $TMPDIR/BGTalesUK5512.exe -d $TMPDIR || die -unshield -L x $TMPDIR/data1.cab -d $TMPDIR || die +cabextract -L $TMPDIR/BGTalesUK5512.exe -d $TMPDIR || diesoftly +unshield -L x $TMPDIR/data1.cab -d $TMPDIR || diesoftly -cp -R $TMPDIR/minimumdata/* "$TARGETDIR" || die +cp -R $TMPDIR/minimumdata/* "$TARGETDIR" || diesoftly cleanuptmp setperms "$TARGETDIR" diff --git a/totsc/install-patch-us.sh b/totsc/install-patch-us.sh index ac17078..5939ac4 100755 --- a/totsc/install-patch-us.sh +++ b/totsc/install-patch-us.sh @@ -28,10 +28,10 @@ setuptmp getpatch http://downloads.bioware.com/baldursgate1/BGTalesUS5512.exe -cabextract -L $TMPDIR/BGTalesUS5512.exe -d $TMPDIR || die -unshield -L x $TMPDIR/data1.cab -d $TMPDIR || die +cabextract -L $TMPDIR/BGTalesUS5512.exe -d $TMPDIR || diesoftly +unshield -L x $TMPDIR/data1.cab -d $TMPDIR || diesoftly -cp -R $TMPDIR/minimumdata/* "$TARGETDIR" || die +cp -R $TMPDIR/minimumdata/* "$TARGETDIR" || diesoftly cleanuptmp setperms "$TARGETDIR" -- cgit v1.2.3