summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-06-08 09:06:11 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-07-12 13:30:53 +0200
commit64e1ee80ea70394f85904d680ef16fd1467b1ca7 (patch)
tree78decebe31f8ef9b428874861eb74b0dda584b05
parent3dabd7f816fa0465c08745ce76f459c4c2a7c3d5 (diff)
downloadsystemd-64e1ee80ea70394f85904d680ef16fd1467b1ca7.tar.gz
man/50-xdg-data-dirs: add quotes as suggested by shellcheck
(cherry picked from commit aa45911b793255bec34fe8c128c80bda1482cc14)
-rwxr-xr-xman/50-xdg-data-dirs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/man/50-xdg-data-dirs.sh b/man/50-xdg-data-dirs.sh
index 89e9fbb599..ce062e394b 100755
--- a/man/50-xdg-data-dirs.sh
+++ b/man/50-xdg-data-dirs.sh
@@ -5,8 +5,8 @@ XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share/:/usr/share}"
# add a directory if it exists
if [[ -d /opt/foo/share ]]; then
- XDG_DATA_DIRS=/opt/foo/share:${XDG_DATA_DIRS}
+ XDG_DATA_DIRS="/opt/foo/share:${XDG_DATA_DIRS}"
fi
# write our output
-echo XDG_DATA_DIRS=$XDG_DATA_DIRS
+echo "XDG_DATA_DIRS=${XDG_DATA_DIRS}"