Skip to content

Commit 68af84d

Browse files
committed
Move around the set -/+x
1 parent b93ebb3 commit 68af84d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ubuntu/16.04/usr/local/share/bootstrap/common_functions.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,16 @@ get_user_home_directory() {
3939
}
4040

4141
as_user() (
42+
set +x
4243
local COMMAND="$1"
4344
local WORKING_DIR="$2"
4445

4546
if [ "true" = "$NON_PRIVILEGED_USER" ]; then
47+
set -x
4648
/bin/bash -c "cd '$WORKING_DIR'; $COMMAND"
4749
return "$?"
4850
fi
4951

50-
set +x
5152
local USER="$3"
5253
if [ -z "$COMMAND" ]; then
5354
return 1;

0 commit comments

Comments
 (0)