From d400ae382e09b091fb372ffc9163273ff40ddb1d Mon Sep 17 00:00:00 2001 From: nick Date: Tue, 21 Apr 2009 12:26:30 -0500 Subject: Store MD5 sums as variables, avoid data duplication, increase clarity. --- totsc/auto-totsc-installer.sh | 2 +- totsc/install-1cd-uk.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'totsc') diff --git a/totsc/auto-totsc-installer.sh b/totsc/auto-totsc-installer.sh index f82114a..d485e5a 100755 --- a/totsc/auto-totsc-installer.sh +++ b/totsc/auto-totsc-installer.sh @@ -11,7 +11,7 @@ echo "Checking CD version" CDMD5=$(md5sum $CDMOUNT/data1.cab|awk '{print $1}') case "$CDMD5" in - "e27d259ddc0171ff945dbba136e60309" ) + $BG1_TOTSC_1CD_UK_MD5 ) FULLGAMENAME="Baldurs Gate Tales of the Sword Coast: 1CD UK version" INSTALLSCRIPT=./install-totsc-1cd-uk.sh OFFICIALPATCH=./install-totsc-patch-uk.sh diff --git a/totsc/install-1cd-uk.sh b/totsc/install-1cd-uk.sh index d1d2ccb..7330f43 100755 --- a/totsc/install-1cd-uk.sh +++ b/totsc/install-1cd-uk.sh @@ -9,7 +9,7 @@ parseargs "$@" checkforbin unshield -getcd 1 e27d259ddc0171ff945dbba136e60309 data1.cab +getcd 1 $BG1_TOTSC_1CD_UK_MD5 data1.cab mkdir -p "$TARGETDIR" || die -- cgit v1.2.3