Update shellcheck version (0.7.2 -> 0.8.0) and fix findings

This commit is contained in:
Oscar Utbult
2022-11-02 10:40:47 +01:00
parent 3efd107eb2
commit 61cd37b806
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