user: add multiple-inclusion protection

BUG=b:187790077
TEST=CQ passes

Change-Id: I2611464e98237acfd10bac39d885bcfa9a10d43f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/eclass-overlay/+/4111960
Reviewed-by: Lizzy Presland <zland@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
diff --git a/eclass/user.eclass b/eclass/user.eclass
index d210259..a4e2ee1 100644
--- a/eclass/user.eclass
+++ b/eclass/user.eclass
@@ -16,6 +16,9 @@
 *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
+if [[ -z ${_USER_ECLASS} ]]; then
+_USER_ECLASS=1
+
 # Before we manipulate users at all, we want to make sure that
 # passwd/group/shadow is initialized in the first place. That's
 # what baselayout does.
@@ -659,3 +662,5 @@
 	[[ $# -eq 1 ]] || die "usage: egetshell <user>"
 	egetent passwd "$1" | cut -d: -f7
 }
+
+fi