fix(packaging): use an if for the icon cache update in install.sh (SC2015)

This commit is contained in:
nvrl committed 2026-11-15 23:57:01 +01:00
1 parent a7baf2313c
commit db8c0cb382
1 file changed
+3 -1
+3 -1
View File
@@ -174,8 +174,10 @@ mkdir -p -- "$data_dir"
printf '%s' "$new_files" >"$manifest"
install -m755 -- "$here/install.sh" "$data_dir/install.sh"
command -v gtk-update-icon-cache >/dev/null && [[ -f "$prefix/share/icons/hicolor/index.theme" ]] &&
if command -v gtk-update-icon-cache >/dev/null &&
[[ -f "$prefix/share/icons/hicolor/index.theme" ]]; then
gtk-update-icon-cache -q -t "$prefix/share/icons/hicolor" 2>/dev/null || true
fi
systemctl_user daemon-reload
if [[ $service -eq 1 ]] && command -v systemctl >/dev/null &&