diff --git a/tests/check-shift-icon-theme.sh b/tests/check-shift-icon-theme.sh index 2079c07d..73783857 100644 --- a/tests/check-shift-icon-theme.sh +++ b/tests/check-shift-icon-theme.sh @@ -155,7 +155,9 @@ collect_repo_icon_names() { [[ -d "$theme_dir" ]] || fail "Missing Shift icon theme directory: $theme_dir" -find "$theme_dir" -xtype l -print > "$broken_icons" +while IFS= read -r -d '' icon_path; do + [[ -e "$icon_path" ]] || printf '%s\n' "$icon_path" +done < <(find "$theme_dir" -type l -print0) > "$broken_icons" if [[ -s "$broken_icons" ]]; then printf 'Broken Shift icon aliases:\n' >&2 sed 's/^/ - /' "$broken_icons" >&2