pythonRemoveTestDirHook: lint with ShellCheck
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
# Clean up top-level tests directory in site-package installation.
|
||||
# shellcheck shell=bash
|
||||
|
||||
echo "Sourcing python-remove-tests-dir-hook"
|
||||
|
||||
pythonRemoveTestsDir() {
|
||||
echo "Executing pythonRemoveTestsDir"
|
||||
|
||||
rm -rf $out/@pythonSitePackages@/tests
|
||||
rm -rf $out/@pythonSitePackages@/test
|
||||
# shellcheck disable=SC2154
|
||||
rm -rf "$out/@pythonSitePackages@/tests"
|
||||
rm -rf "$out/@pythonSitePackages@/test"
|
||||
|
||||
echo "Finished executing pythonRemoveTestsDir"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user