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.
This commit is contained in:
Marco Allegretti 2026-05-17 18:31:58 +02:00
parent a338369457
commit e54696b5c6

View file

@ -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