diff options
| author | Michael Forney <mforney@mforney.org> | 2020-04-19 02:13:23 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-04-19 02:13:23 -0700 |
| commit | 0dbae24a86415b956640738c921ddc4079a424c3 (patch) | |
| tree | 5055b1523775d11e51babc8a510fddeeef3c28b4 | |
| parent | 66485a7e1f1b54e1c7a957fce145255c4c566fa2 (diff) | |
Address some shellcheck warnings
| -rw-r--r-- | pkg/git/fetch.sh | 8 | ||||
| -rw-r--r-- | pkg/linux-headers/fetch.sh | 4 | ||||
| -rw-r--r-- | pkg/openbsd/fetch.sh | 4 | ||||
| -rw-r--r-- | scripts/fetch-curl.sh | 6 |
4 files changed, 11 insertions, 11 deletions
diff --git a/pkg/git/fetch.sh b/pkg/git/fetch.sh index 3ee5f3d8..cac21b42 100644 --- a/pkg/git/fetch.sh +++ b/pkg/git/fetch.sh @@ -1,9 +1,9 @@ -: ${SHA256SUM:=sha256sum} -: ${PAXREAD:=pax -r} +: "${SHA256SUM:=sha256sum}" +: "${PAXREAD:=pax -r}" set -e -(. ./scripts/fetch-git.sh "$@") +sh scripts/fetch-git.sh "$@" cd "$1" shift @@ -17,5 +17,5 @@ if ! $SHA256SUM -c sha256 2>/dev/null ; then $SHA256SUM -c sha256 fi -read -r checksum archive <sha256 +read -r _ archive <sha256 gzip -d -c "$archive" | $PAXREAD -s ',^\.,src/man,' diff --git a/pkg/linux-headers/fetch.sh b/pkg/linux-headers/fetch.sh index 941842b7..94d70276 100644 --- a/pkg/linux-headers/fetch.sh +++ b/pkg/linux-headers/fetch.sh @@ -1,5 +1,5 @@ -: ${SHA256SUM:=sha256sum} -: ${PAXREAD:=pax -r} +: "${SHA256SUM:=sha256sum}" +: "${PAXREAD:=pax -r}" set -e diff --git a/pkg/openbsd/fetch.sh b/pkg/openbsd/fetch.sh index 3b4f54f2..c2a36ba8 100644 --- a/pkg/openbsd/fetch.sh +++ b/pkg/openbsd/fetch.sh @@ -1,5 +1,5 @@ -: ${SHA256SUM:=sha256sum} -: ${PAXREAD:=pax -r} +: "${SHA256SUM:=sha256sum}" +: "${PAXREAD:=pax -r}" set -e diff --git a/scripts/fetch-curl.sh b/scripts/fetch-curl.sh index e026faef..1e35c68d 100644 --- a/scripts/fetch-curl.sh +++ b/scripts/fetch-curl.sh @@ -1,5 +1,5 @@ -: ${SHA256SUM:=sha256sum} -: ${PAXREAD:=pax -r} +: "${SHA256SUM:=sha256sum}" +: "${PAXREAD:=pax -r}" set -e @@ -22,7 +22,7 @@ if ! $SHA256SUM -c sha256 2>/dev/null ; then $SHA256SUM -c sha256 fi -while read -r checksum archive ; do +while read -r _ archive ; do case $archive in *.tar.gz|*.tgz) tool=gzip ;; |
