From eb8fd79485d0cd4921286a2e780b6f8058761c60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Pollak?= Date: Wed, 23 Jan 2013 21:12:38 -0300 Subject: [PATCH] create_user.sh: Skip empty folders when looking for user. --- scripts/create_user.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create_user.sh b/scripts/create_user.sh index 13ea6e10e..2f5119aa0 100755 --- a/scripts/create_user.sh +++ b/scripts/create_user.sh @@ -19,7 +19,7 @@ else fi SUDOERS_LINE="${USER_NAME} ALL = NOPASSWD: ${SUDOERS_ARGS}" -EXISTING_USER=$(find ${USERS_PATH} -maxdepth 1 | grep -v ${USER_NAME} | tail -1 | cut -f3 -d "/") +EXISTING_USER=$(find ${USERS_PATH} -maxdepth 1 -not -path "*/\.*" | grep -v ${USER_NAME} | tail -1 | cut -f3 -d "/") # osx ADMIN_GROUP_ID=80