Skip to content

Commit

Permalink
create_user.sh: Skip empty folders when looking for user.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas committed Jan 24, 2013
1 parent 506ab5b commit eb8fd79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/create_user.sh
Expand Up @@ -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
Expand Down

0 comments on commit eb8fd79

Please sign in to comment.