summaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/InstallPKGFromURL.sh
diff options
context:
space:
mode:
Diffstat (limited to 'coin/provisioning/common/InstallPKGFromURL.sh')
-rw-r--r--coin/provisioning/common/InstallPKGFromURL.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/coin/provisioning/common/InstallPKGFromURL.sh b/coin/provisioning/common/InstallPKGFromURL.sh
index bd916cec..c00b646c 100644
--- a/coin/provisioning/common/InstallPKGFromURL.sh
+++ b/coin/provisioning/common/InstallPKGFromURL.sh
@@ -69,7 +69,8 @@ function InstallPKGFromURL {
esac
}
echo "Checking SHA1 on PKG '$targetFile'"
- echo "$expectedSha1 *$targetFile" | /usr/bin/shasum --check || throw $ExceptionSHA1
+ echo "$expectedSha1 *$targetFile" > $targetFile.sha1
+ /usr/bin/shasum --check $targetFile.sha1 || throw $ExceptionSHA1
echo "Run installer on PKG"
sudo installer -package "$targetFile" -target "$targetDirectory" || throw $ExceptionInstallerPKG
echo "Removing file '$targetFile'"