aboutsummaryrefslogtreecommitdiff
path: root/aux/ci/git-post-receive.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-07-16 00:56:48 -0300
committerEuAndreh <eu@euandre.org>2021-07-16 09:00:34 -0300
commitc4321ee0cb7d42694d0ffa060a5fa2c1de15177e (patch)
treeb93f84922c74b2b4d0aff91b9fc797f9afd7ef30 /aux/ci/git-post-receive.sh
parentaux/ci/git-post-receive.sh: Emit retrigger instruction even when build fails (diff)
downloadgit-permalink-c4321ee0cb7d42694d0ffa060a5fa2c1de15177e.tar.gz
git-permalink-c4321ee0cb7d42694d0ffa060a5fa2c1de15177e.tar.xz
aux/ci/git-post-receive.sh: Stop silently overrinding $_
Diffstat (limited to 'aux/ci/git-post-receive.sh')
-rwxr-xr-xaux/ci/git-post-receive.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/aux/ci/git-post-receive.sh b/aux/ci/git-post-receive.sh
index b064361..b8584bf 100755
--- a/aux/ci/git-post-receive.sh
+++ b/aux/ci/git-post-receive.sh
@@ -9,7 +9,8 @@ for n in $(seq 0 $((GIT_PUSH_OPTION_COUNT - 1))); do
fi
done
-read -r _ SHA _ # oldrev newrev refname
+# shellcheck disable=2034
+read -r _oldrev SHA _refname
PROJECT="$(basename "$PWD" | cut -d. -f1)" # remove .git suffix
LOGS_DIR="/opt/ci/$PROJECT/logs"