logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: 0dbae24a86415b956640738c921ddc4079a424c3
parent 66485a7e1f1b54e1c7a957fce145255c4c566fa2
Author: Michael Forney <mforney@mforney.org>
Date:   Sun, 19 Apr 2020 02:13:23 -0700

Address some shellcheck warnings

Diffstat:

Mpkg/git/fetch.sh8++++----
Mpkg/linux-headers/fetch.sh4++--
Mpkg/openbsd/fetch.sh4++--
Mscripts/fetch-curl.sh6+++---
4 files changed, 11 insertions(+), 11 deletions(-)

diff --git 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 @@ -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 @@ -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 @@ -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 ;;