]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man/50-xdg-data-dirs: add quotes as suggested by shellcheck
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 8 Jun 2021 07:06:11 +0000 (09:06 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 23 Jun 2021 16:11:49 +0000 (18:11 +0200)
man/50-xdg-data-dirs.sh

index 89e9fbb599b3e86961a5a974d98af5b1f927531b..ce062e394bfb79538940df8367ef92518f98a53e 100755 (executable)
@@ -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}"