summaryrefslogtreecommitdiff
path: root/src/share/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/common')
-rwxr-xr-xsrc/share/common4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/common b/src/share/common
index 78fb04e..9329ce4 100755
--- a/src/share/common
+++ b/src/share/common
@@ -106,9 +106,9 @@ su_monkeysphere_user() {
local CMDLINE="$(perl -0 -e "foreach (@ARGV) {s/'/'\\\\''/g; print \"'\$_' \"}" "$@")"
case $(id -un) in
- # if monkeysphere user, run the command under bash
+ # if monkeysphere user, simply execute in current shell
"$MONKEYSPHERE_USER")
- bash -c "$CMDLINE"
+ "$@"
;;
# if root, su command as monkeysphere user