X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjo-overlay.git;a=blobdiff_plain;f=eclass%2Fsys-user.eclass;h=8a4c426e3e0dcc36801d63079d427e8891d34241;hp=37c4d8719ac82cce8bec5a42b3f830c9ed5ba682;hb=8da30d4d982f17cb7605a3bb0804b5561acb6e31;hpb=42b11c0d223b3cbdd2a3878375b54bedd66fc46b diff --git a/eclass/sys-user.eclass b/eclass/sys-user.eclass index 37c4d87..8a4c426 100644 --- a/eclass/sys-user.eclass +++ b/eclass/sys-user.eclass @@ -178,7 +178,8 @@ sys-user_src_configure() { fi local current_name=$(sys-user_getname "${SYS_USER_UID}") - if [[ "${current_name}" != "${SYS_USER_NAME}" ]]; then + if [[ -n "${current_name}" ]] && \ + [[ "${current_name}" != "${SYS_USER_NAME}" ]]; then # This UID is already taken by another user, but this # specific UID was not important (we checked in # pkg_pretend), so fall back to an arbitrary one.