Permalink
Browse files

create_user.sh: Skip empty folders when looking for user.

  • Loading branch information...
1 parent 506ab5b commit eb8fd79485d0cd4921286a2e780b6f8058761c60 @tomas tomas committed Jan 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit eb8fd79

Please sign in to comment.