Merge pull request #113541 from oscr/update-shellcheck-0.8.0

Update shellcheck version (0.7.2 -> 0.8.0) and fix findings
This commit is contained in:
Kubernetes Prow Robot
2022-11-12 02:23:57 -08:00
committed by GitHub
14 changed files with 89 additions and 76 deletions

View File

@@ -30,8 +30,8 @@ CLEAN_PATTERNS=(
for pattern in "${CLEAN_PATTERNS[@]}"; do
while IFS=$'\n' read -r match; do
echo "Removing ${match#${KUBE_ROOT}\/} .."
rm -rf "${match#${KUBE_ROOT}\/}"
echo "Removing ${match#"${KUBE_ROOT}"\/} .."
rm -rf "${match#"${KUBE_ROOT}"\/}"
done < <(find "${KUBE_ROOT}" -iregex "^${KUBE_ROOT}/${pattern}$")
done