diff options
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/,' \ |
