summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/qa/run-style-tests10
1 files changed, 5 insertions, 5 deletions
diff --git a/share/spack/qa/run-style-tests b/share/spack/qa/run-style-tests
index 72c47ff055..9f0cbdb266 100755
--- a/share/spack/qa/run-style-tests
+++ b/share/spack/qa/run-style-tests
@@ -14,15 +14,15 @@
# Usage:
# run-flake8-tests
#
-. "$(dirname $0)/setup.sh"
+. "$(dirname "$0")/setup.sh"
-BASE=""
-if [ -n "$GITHUB_BASE_REF" ]; then
- BASE="--base ${GITHUB_BASE_REF}"
+args=()
+if [[ -n $GITHUB_BASE_REF ]]; then
+ args+=("--base" "${GITHUB_BASE_REF}")
fi
# verify that the code style is correct
-spack style --root-relative $BASE
+spack style --root-relative "${args[@]}"
# verify that the license headers are present
spack license verify