diff --git a/pkgs/development/interpreters/python/hooks/unittest-check-hook.sh b/pkgs/development/interpreters/python/hooks/unittest-check-hook.sh index 8795b680a310..3ee947e278e6 100644 --- a/pkgs/development/interpreters/python/hooks/unittest-check-hook.sh +++ b/pkgs/development/interpreters/python/hooks/unittest-check-hook.sh @@ -1,4 +1,6 @@ # Setup hook for unittest. +# shellcheck shell=bash + echo "Sourcing unittest-check-hook" unittestCheckPhase() { @@ -18,7 +20,7 @@ unittestCheckPhase() { echo "Finished executing unittestCheckPhase" } -if [ -z "${dontUseUnittestCheck-}" ] && [ -z "${installCheckPhase-}" ]; then +if [[ -z "${dontUseUnittestCheck-}" ]] && [[ -z "${installCheckPhase-}" ]]; then echo "Using unittestCheckPhase" appendToVar preDistPhases unittestCheckPhase fi