tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
unittestCheckHook: lint with ShellCheck
Yueh-Shun Li
1 year ago
9b07602c
1e8f3914
+3
-1
1 changed file
expand all
collapse all
unified
split
pkgs
development
interpreters
python
hooks
unittest-check-hook.sh
+3
-1
pkgs/development/interpreters/python/hooks/unittest-check-hook.sh
reviewed
···
1
1
# Setup hook for unittest.
2
2
+
# shellcheck shell=bash
3
3
+
2
4
echo "Sourcing unittest-check-hook"
3
5
4
6
unittestCheckPhase() {
···
18
20
echo "Finished executing unittestCheckPhase"
19
21
}
20
22
21
21
-
if [ -z "${dontUseUnittestCheck-}" ] && [ -z "${installCheckPhase-}" ]; then
23
23
+
if [[ -z "${dontUseUnittestCheck-}" ]] && [[ -z "${installCheckPhase-}" ]]; then
22
24
echo "Using unittestCheckPhase"
23
25
appendToVar preDistPhases unittestCheckPhase
24
26
fi