mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Merge pull request #98426 from romildo/fix.hicolor-icon-theme
hicolor-icon-theme: fix quoting shell variables in setup hook
This commit is contained in:
commit
d6a12e8d9e
@ -28,17 +28,17 @@ symlinkParentIconThemes() {
|
||||
theme_name="${theme%/*}"
|
||||
theme_name="${theme_name##*/}"
|
||||
echo " theme: $theme_name"
|
||||
inheritance=$(sed -rne 's,^Inherits=(.*)$,\1,p' $theme)
|
||||
inheritance=$(sed -rne 's,^Inherits=(.*)$,\1,p' "$theme")
|
||||
IFS=',' read -ra parent_themes <<< "$inheritance"
|
||||
for parent_theme in "${parent_themes[@]}"; do
|
||||
parent_path=""
|
||||
if [ -e "$out/share/icons/$parent_theme" ]; then
|
||||
parent_path="$(realpath $out/share/icons/$parent_theme)"
|
||||
parent_path="$(realpath "$out/share/icons/$parent_theme")"
|
||||
else
|
||||
IFS=':' read -ra dirs <<< $XDG_ICON_DIRS
|
||||
for parent_dir in "${dirs[@]}"; do
|
||||
if [ -e "$parent_dir/icons/$parent_theme/index.theme" ]; then
|
||||
parent_path=$(realpath "$parent_dir/icons/$parent_theme")
|
||||
parent_path="$(realpath "$parent_dir/icons/$parent_theme")"
|
||||
ln -s "$parent_path" "$out/share/icons/"
|
||||
break
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user