diff options
| author | Michael Forney <mforney@mforney.org> | 2020-05-08 13:43:01 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-05-08 13:49:57 -0700 |
| commit | 6a6672c57e814a93fca1db8dc79d936d2a22eaa4 (patch) | |
| tree | 917d1e5f3b8e2158830d256ad580275036700ffb /scripts/fetch-curl.sh | |
| parent | f74127556dade2c7434517caf16967e452787d79 (diff) | |
Detect sha256 tool automatically
Diffstat (limited to 'scripts/fetch-curl.sh')
| -rw-r--r-- | scripts/fetch-curl.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/fetch-curl.sh b/scripts/fetch-curl.sh index 80d70ee0..a6d5af57 100644 --- a/scripts/fetch-curl.sh +++ b/scripts/fetch-curl.sh @@ -1,5 +1,3 @@ -: "${SHA256SUM:=sha256sum}" - set -e if [ "$#" != 1 ] ; then @@ -16,9 +14,9 @@ if [ -e src ] ; then rm -rf src fi -if ! $SHA256SUM -c sha256 2>/dev/null ; then +if ! sh "$OLDPWD/scripts/checksum.sh" -c sha256 2>/dev/null ; then curl -L -K url -O - $SHA256SUM -c sha256 + sh "$OLDPWD/scripts/checksum.sh" -c sha256 fi while read -r _ archive ; do |
