aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Scripts/do-users-groups.sh
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2016-05-21 03:01:59 +0800
committermat <mat@FreeBSD.org>2016-05-21 03:01:59 +0800
commitdbd21e3002dc79c28cefc1626df066fc3ad3f804 (patch)
tree18a674c06980955bc60965efef07fce53300b38c /Mk/Scripts/do-users-groups.sh
parentc73db5303235f9433caeb0dda83d254a3ec87cb4 (diff)
downloadfreebsd-ports-gnome-dbd21e3002dc79c28cefc1626df066fc3ad3f804.tar.gz
freebsd-ports-gnome-dbd21e3002dc79c28cefc1626df066fc3ad3f804.tar.zst
freebsd-ports-gnome-dbd21e3002dc79c28cefc1626df066fc3ad3f804.zip
Ease debugging of Mk/Scripts scripts.
Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D6474
Diffstat (limited to 'Mk/Scripts/do-users-groups.sh')
-rw-r--r--Mk/Scripts/do-users-groups.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mk/Scripts/do-users-groups.sh b/Mk/Scripts/do-users-groups.sh
index c8833d0730b7..4a48760deb72 100644
--- a/Mk/Scripts/do-users-groups.sh
+++ b/Mk/Scripts/do-users-groups.sh
@@ -12,6 +12,8 @@ validate_env dp_ECHO_MSG dp_GID_FILES dp_GID_OFFSET dp_GROUPS_BLACKLIST \
dp_UG_DEINSTALL dp_UG_INSTALL dp_UID_FILES dp_UID_OFFSET \
dp_USERS_BLACKLIST
+[ -n "${DEBUG_MK_SCRIPTS}" -o -n "${DEBUG_MK_SCRIPTS_DO_USERS_GROUPS}" ] && set -x
+
set -u
USERS=$1