git.iko.soy/typeable/nixpkgs
on master help sign in
hicolor-icon-theme: fix quoting shell variables in setup hook
commitfa5cb6b2a8928485933dcdda4f1abedb467a0785 authorJosé Romildo Malaquias <malaquias@gmail.com> dateMon 21 Sep 2020, 19:34 (6 years ago) parent6b94816
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