git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #98426 from romildo/fix.hicolor-icon-theme

hicolor-icon-theme: fix quoting shell variables in setup hook

commitd6a12e8d9e0a4ac35ed401881e0d3160c764ac36 authorJosé Romildo Malaquias <malaquias@gmail.com> dateWed 30 Sep 2020, 10:54 (6 years ago) parent6148b0efa5cb6b
1 file changed+3−3
pkgs/data/icons/hicolor-icon-theme/setup-hook.sh+3−3
pkgs/data/icons/hicolor-icon-theme/setup-hook.sh+3−3
@@ -28,17 +28,17 @@ symlinkParentIconThemes() {
2828 theme_name="${theme%/*}"
2929 theme_name="${theme_name##*/}"
3030 echo " theme: $theme_name"
31− inheritance=$(sed -rne 's,^Inherits=(.*)$,\1,p' $theme)
31+ inheritance=$(sed -rne 's,^Inherits=(.*)$,\1,p' "$theme")
3232 IFS=',' read -ra parent_themes <<< "$inheritance"
3333 for parent_theme in "${parent_themes[@]}"; do
3434 parent_path=""
3535 if [ -e "$out/share/icons/$parent_theme" ]; then
36− parent_path="$(realpath $out/share/icons/$parent_theme)"
36+ parent_path="$(realpath "$out/share/icons/$parent_theme")"
3737 else
3838 IFS=':' read -ra dirs <<< $XDG_ICON_DIRS
3939 for parent_dir in "${dirs[@]}"; do
4040 if [ -e "$parent_dir/icons/$parent_theme/index.theme" ]; then
41− parent_path=$(realpath "$parent_dir/icons/$parent_theme")
41+ parent_path="$(realpath "$parent_dir/icons/$parent_theme")"
4242 ln -s "$parent_path" "$out/share/icons/"
4343 break
4444 fi