summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/cvsup-mirror/pkg-install4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/cvsup-mirror/pkg-install b/net/cvsup-mirror/pkg-install
index 53f97b7f98d6..fc96e3c0fb7c 100644
--- a/net/cvsup-mirror/pkg-install
+++ b/net/cvsup-mirror/pkg-install
@@ -94,7 +94,7 @@ EOF
fi
echo ""
- if grep -q "^${group}:" /etc/group; then
+ if pw group show "${group}" 2>/dev/null; then
echo "You already have a group \"${group}\", so I will use it."
else
echo "You need a group \"${group}\"."
@@ -111,7 +111,7 @@ EOF
fi
fi
- if grep -q "^${user}:" /etc/passwd; then
+ if pw user show "${user}" 2>/dev/null; then
echo "You already have a user \"${user}\", so I will use it."
else
echo "You need a user \"${user}\"."