From e54696b5c62fe23dc4591242390ed51e48c92127 Mon Sep 17 00:00:00 2001 From: Marco Allegretti Date: Sun, 17 May 2026 18:31:58 +0200 Subject: [PATCH] Make icon theme test BusyBox-compatible BusyBox find does not support GNU find's -xtype predicate, which caused shift-icon-theme-coverage to fail in CI. Iterate symlinks with portable find -type l -print0 and let Bash check whether each target exists instead. --- tests/check-shift-icon-theme.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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