pythonOutputDistHook: lint with ShellCheck

This commit is contained in:
Yueh-Shun Li
2024-11-05 10:47:22 +08:00
parent ccb418b699
commit e4f2f9dd22
@@ -1,9 +1,12 @@
# Setup hook for storing dist folder (wheels/sdists) in a separate output
# shellcheck shell=bash
echo "Sourcing python-catch-conflicts-hook.sh"
pythonOutputDistPhase() {
echo "Executing pythonOutputDistPhase"
if [[ -d dist ]]; then
# shellcheck disable=SC2154
mv "dist" "$dist"
else
cat >&2 <<EOF