remove custom screensavers (let shells handle it)
This commit is contained in:
+3
-1
@@ -31,7 +31,9 @@ say_pass() { printf 'ok: %s\n' "$*"; PASS=$((PASS+1)); }
|
||||
# Exclusions: never lint tpm or general vendored plugin trees, whose third-party
|
||||
# scripts may legitimately fail `bash -n` and are not written/maintained here.
|
||||
EXCLUDE_VENDOR='(/tpm/|/plugins/|/plugins$)'
|
||||
mapfile -t SCRIPTS < <(git ls-files '*.sh' 2>/dev/null | grep -vE "$EXCLUDE_VENDOR")
|
||||
mapfile -t SCRIPTS < <(git ls-files '*.sh' 2>/dev/null | grep -vE "$EXCLUDE_VENDOR" | while IFS= read -r script; do
|
||||
[[ -f "$script" ]] && printf '%s\n' "$script"
|
||||
done)
|
||||
if [[ ${#SCRIPTS[@]} -eq 0 ]]; then
|
||||
mapfile -t SCRIPTS < <(find . -name '*.sh' \
|
||||
-not -path './.git/*' -not -path '*/.git/*' \
|
||||
|
||||
Reference in New Issue
Block a user