We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
set -/+x
1 parent b93ebb3 commit 68af84dCopy full SHA for 68af84d
ubuntu/16.04/usr/local/share/bootstrap/common_functions.sh
@@ -39,15 +39,16 @@ get_user_home_directory() {
39
}
40
41
as_user() (
42
+ set +x
43
local COMMAND="$1"
44
local WORKING_DIR="$2"
45
46
if [ "true" = "$NON_PRIVILEGED_USER" ]; then
47
+ set -x
48
/bin/bash -c "cd '$WORKING_DIR'; $COMMAND"
49
return "$?"
50
fi
51
- set +x
52
local USER="$3"
53
if [ -z "$COMMAND" ]; then
54
return 1;
0 commit comments