[jhbuild/wip/lantw/examples-quote-shell-variables] examples: Quote shell variables



commit 03a1ce3188bebc75729c80f1b0bd5a95bfe55486
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Tue Oct 8 02:24:58 2019 +0800

    examples: Quote shell variables
    
    It isn't caught by shellcheck, but it should be nice to always do so.

 examples/jhbuild-session | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/examples/jhbuild-session b/examples/jhbuild-session
index 1012d9e7..fc4ff4d6 100755
--- a/examples/jhbuild-session
+++ b/examples/jhbuild-session
@@ -13,9 +13,9 @@ export PATH LD_LIBRARY_PATH PYTHONPATH PKG_CONFIG_PATH GDK_USE_XFT XDG_DATA_DIRS
 
 # Pick up systemd units defined in jhbuild
 mkdir -p "$XDG_RUNTIME_DIR/systemd/user.control"
-command cp -r ${GNOME}/lib/systemd/user/* "$XDG_RUNTIME_DIR/systemd/user.control"
+command cp -r "${GNOME}/lib/systemd/user/"* "$XDG_RUNTIME_DIR/systemd/user.control"
 systemctl --user daemon-reload
 
-#exec valgrind --tool=memcheck --log-file=/tmp/session-grind.log ${GNOME}/bin/gnome-session
-exec ${GNOME}/bin/gnome-session --debug
+#exec valgrind --tool=memcheck --log-file=/tmp/session-grind.log "${GNOME}/bin/gnome-session"
+exec "${GNOME}/bin/gnome-session" --debug
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]