mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-06-11 00:47:22 +00:00
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:
parent
a338369457
commit
e54696b5c6
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue