summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2013-03-13 13:00:14 +0100
committerJonas Smedegaard <dr@jones.dk>2013-03-13 13:20:34 +0100
commitfeaefda90da8c453545ba740bd445b647d8c63c4 (patch)
treebaa6de048b119771c712d63bf0b675a811e91468 /src
parentb6d2d8da1a502b86b8aef50dc885cdce27fdf595 (diff)
Fix quote command embedded in another command (thanks, Daniel!)
NB! There seems to be many more of these, e.g. revealed by this command: git grep '[^="]$(' -- '*/*'
Diffstat (limited to 'src')
-rwxr-xr-xsrc/share/common2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/common b/src/share/common
index 9329ce4..6cf38f6 100755
--- a/src/share/common
+++ b/src/share/common
@@ -105,7 +105,7 @@ su_monkeysphere_user() {
# printf -v CMDLINE "%q " "$@"
local CMDLINE="$(perl -0 -e "foreach (@ARGV) {s/'/'\\\\''/g; print \"'\$_' \"}" "$@")"
- case $(id -un) in
+ case "$(id -un)" in
# if monkeysphere user, simply execute in current shell
"$MONKEYSPHERE_USER")
"$@"