mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-13 16:06:59 +02:00
Merge pull request #96 from marineam/user-fix
fix(make_chroot): Don't fail if user's full name is blank.
This commit is contained in:
commit
c7dab1c3b9
@ -147,7 +147,6 @@ init_users () {
|
||||
info "Adding user ${SUDO_USER}..."
|
||||
local full_name group_name
|
||||
full_name=$(getent passwd "${SUDO_USER}" | cut -d: -f5)
|
||||
[[ -n "${full_name}" ]] || die "Looking up user $SUDO_USER failed."
|
||||
group_name=$(getent group "${SUDO_GID}" | cut -d: -f1)
|
||||
[[ -n "${group_name}" ]] || die "Looking up gid $SUDO_GID failed."
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user