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 | |
| parent | f74127556dade2c7434517caf16967e452787d79 (diff) | |
Detect sha256 tool automatically
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/git/fetch.sh | 6 | ||||
| -rw-r--r-- | pkg/linux-headers/fetch.sh | 6 | ||||
| -rw-r--r-- | pkg/openbsd/fetch.sh | 6 |
3 files changed, 6 insertions, 12 deletions
diff --git a/pkg/git/fetch.sh b/pkg/git/fetch.sh index 9b17a0d5..326e7338 100644 --- a/pkg/git/fetch.sh +++ b/pkg/git/fetch.sh @@ -1,5 +1,3 @@ -: "${SHA256SUM:=sha256sum}" - set -e sh scripts/fetch-git.sh "$@" @@ -11,9 +9,9 @@ if [ -e src/man ] ; then rm -rf src/man fi -if ! $SHA256SUM -c sha256 2>/dev/null ; then +if ! sh "$OLDPWD/scripts/checksum.sh" -c sha256 2>/dev/null ; then curl -L -O -K url - $SHA256SUM -c sha256 + sh "$OLDPWD/scripts/checksum.sh" -c sha256 fi read -r _ archive <sha256 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 diff --git a/pkg/openbsd/fetch.sh b/pkg/openbsd/fetch.sh index 021eb802..bff225ed 100644 --- a/pkg/openbsd/fetch.sh +++ b/pkg/openbsd/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 sh "$OLDPWD/scripts/extract.sh" src.tar.gz -s ',^,src/,' \ |
