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 /pkg/linux-headers/fetch.sh | |
| parent | f74127556dade2c7434517caf16967e452787d79 (diff) | |
Detect sha256 tool automatically
Diffstat (limited to 'pkg/linux-headers/fetch.sh')
| -rw-r--r-- | pkg/linux-headers/fetch.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/linux-headers/fetch.sh b/pkg/linux-headers/fetch.sh index 0d5f32d8..0866f9b7 100644 --- a/pkg/linux-headers/fetch.sh +++ b/pkg/linux-headers/fetch.sh @@ -1,5 +1,3 @@ -: "${SHA256SUM:=sha256sum}" - set -e dir=$1 @@ -11,9 +9,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 read -r _ archive <sha256 |
