summaryrefslogtreecommitdiff
path: root/pkg/git
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-04-19 02:13:23 -0700
committerMichael Forney <mforney@mforney.org>2020-04-19 02:13:23 -0700
commit0dbae24a86415b956640738c921ddc4079a424c3 (patch)
tree5055b1523775d11e51babc8a510fddeeef3c28b4 /pkg/git
parent66485a7e1f1b54e1c7a957fce145255c4c566fa2 (diff)
Address some shellcheck warnings
Diffstat (limited to 'pkg/git')
-rw-r--r--pkg/git/fetch.sh8
1 files changed, 4 insertions, 4 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,'