core/larch/buildscripts/user-exists
2010-05-21 22:16:47 +00:00

12 lines
205 B
Bash
Executable File

#!/bin/sh
#
# user-exists - Test for the existence of a user
#
#2010.03.09
# $1: path to system to be larchified ("/" if running system)
# $2: username to test for
grep "^$2:" $1/etc/passwd &>/dev/null