unittestCheckHook: lint with ShellCheck

Changed files
+3 -1
pkgs
development
interpreters
python
+3 -1
pkgs/development/interpreters/python/hooks/unittest-check-hook.sh
···
# Setup hook for unittest.
echo "Sourcing unittest-check-hook"
unittestCheckPhase() {
···
echo "Finished executing unittestCheckPhase"
}
-
if [ -z "${dontUseUnittestCheck-}" ] && [ -z "${installCheckPhase-}" ]; then
echo "Using unittestCheckPhase"
appendToVar preDistPhases unittestCheckPhase
fi
···
# Setup hook for unittest.
+
# shellcheck shell=bash
+
echo "Sourcing unittest-check-hook"
unittestCheckPhase() {
···
echo "Finished executing unittestCheckPhase"
}
+
if [[ -z "${dontUseUnittestCheck-}" ]] && [[ -z "${installCheckPhase-}" ]]; then
echo "Using unittestCheckPhase"
appendToVar preDistPhases unittestCheckPhase
fi