From c40ed08406f781a82e972d65ae5bf55a34613a93 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Thu, 1 Oct 2015 13:17:49 +0900 Subject: [PATCH] Fix sha256sum generation on OS X. --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index eb19e49d5e..cc556be8d6 100755 --- a/install.sh +++ b/install.sh @@ -197,7 +197,11 @@ fi download_libs # mind the gap (trailing space) -sha256sum $cachedir/orctlibs.zip | cut -f1 -d\ > $libVFile +if [[ `uname` == "Darwin" ]]; then + shasum -a 256 $cachedir/orctlibs.zip | cut -f1 -d\ > $libVFile +else + sha256sum $cachedir/orctlibs.zip | cut -f1 -d\ > $libVFile +fi echo "Downloaded library with sha256sum: $(cat $libVFile)" # Local libs are required for all targets install_local_libs