aboutsummaryrefslogtreecommitdiff
path: root/pkgs/data/icons
diff options
context:
space:
mode:
authorJosé Romildo Malaquias <malaquias@gmail.com>2020-09-21 19:34:59 -0300
committerJosé Romildo Malaquias <malaquias@gmail.com>2020-09-27 15:51:41 -0300
commitfa5cb6b2a8928485933dcdda4f1abedb467a0785 (patch)
tree4260d5de42602a35fd2b04054010793ad6dc9b16 /pkgs/data/icons
parent6b9481607bfcc78dcc0a7919b849409c745a6c9e (diff)
hicolor-icon-theme: fix quoting shell variables in setup hook
Diffstat (limited to 'pkgs/data/icons')
-rw-r--r--pkgs/data/icons/hicolor-icon-theme/setup-hook.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/data/icons/hicolor-icon-theme/setup-hook.sh b/pkgs/data/icons/hicolor-icon-theme/setup-hook.sh
index 0fd9bf85d831..df7cac08b058 100644
--- a/pkgs/data/icons/hicolor-icon-theme/setup-hook.sh
+++ b/pkgs/data/icons/hicolor-icon-theme/setup-hook.sh
@@ -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