shellcheck: fix lint of scripts in tests

This commit is contained in:
Otto Sabart
2022-08-28 18:25:37 +02:00
committed by Erik Arvstedt
parent a59c3b4b8a
commit f184bb34e6
14 changed files with 82 additions and 59 deletions
+3 -1
View File
@@ -1,13 +1,15 @@
# Create and maintain a minimal git repo at the root of the copied src
(
# shellcheck disable=SC2154,SC2164
cd "$scriptDir/.."
amend=--amend
if [[ ! -e .git ]]; then
git init
amend=
fi
git add .
if ! git diff --quiet --cached; then
git commit -a $amend -m -
git commit -a "$amend" -m -
fi
) >/dev/null