svn commit: r452181 - head/Mk/Scripts
Antoine Brodin
antoine at FreeBSD.org
Mon Oct 16 08:30:28 UTC 2017
Author: antoine
Date: Mon Oct 16 08:30:27 2017
New Revision: 452181
URL: https://svnweb.freebsd.org/changeset/ports/452181
Log:
Skip comments when parsing GID_FILES
Reviewed by: bapt
MFH: 2017Q4
Differential Revision: https://reviews.freebsd.org/D12682
Modified:
head/Mk/Scripts/do-users-groups.sh
Modified: head/Mk/Scripts/do-users-groups.sh
==============================================================================
--- head/Mk/Scripts/do-users-groups.sh Mon Oct 16 08:03:46 2017 (r452180)
+++ head/Mk/Scripts/do-users-groups.sh Mon Oct 16 08:30:27 2017 (r452181)
@@ -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
More information about the svn-ports-head
mailing list