aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Scripts/do-users-groups.sh
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2017-10-16 16:30:27 +0800
committerantoine <antoine@FreeBSD.org>2017-10-16 16:30:27 +0800
commitdf956653b174c01b58eb5daa946ddf41f403a45d (patch)
tree516698c1c32f9ecd1b9d2993fce7412f07baee22 /Mk/Scripts/do-users-groups.sh
parent247f2f9d089649ff514b1bbddb5f4f003ff5e479 (diff)
downloadfreebsd-ports-gnome-df956653b174c01b58eb5daa946ddf41f403a45d.tar.gz
freebsd-ports-gnome-df956653b174c01b58eb5daa946ddf41f403a45d.tar.zst
freebsd-ports-gnome-df956653b174c01b58eb5daa946ddf41f403a45d.zip
Skip comments when parsing GID_FILES
Reviewed by: bapt MFH: 2017Q4 Differential Revision: https://reviews.freebsd.org/D12682
Diffstat (limited to 'Mk/Scripts/do-users-groups.sh')
-rw-r--r--Mk/Scripts/do-users-groups.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Scripts/do-users-groups.sh b/Mk/Scripts/do-users-groups.sh
index e45047fc65a3..a01f4b9ddf66 100644
--- a/Mk/Scripts/do-users-groups.sh
+++ b/Mk/Scripts/do-users-groups.sh
@@ -139,7 +139,7 @@ if [ -n "${USERS}" ]; then
/|/nonexistent|/var/empty)
;;
*)
- group=$(awk -F: -v gid=${gid} '$3 == gid { print $1 }' ${dp_GID_FILES})
+ group=$(awk -F: -v gid=${gid} '$1 !~ /^#/ && $3 == gid { print $1 }' ${dp_GID_FILES})
echo "${dp_INSTALL} -d -g $group -o $login $homedir" >> "${dp_UG_INSTALL}"
;;
esac