Fix import-stx bug

After [1] was merged, a bug was found in which
the getent is printing unnecessary characters on
stdout causing a divided by zero error

Test plan:

PASS - source import-stx
PASS - Bring up a new env with this import-stx

Story: 2010055
Task: 50138

Change-Id: I192199a59c65916c4170f7c6a9f57d3a3b3bb491
Signed-off-by: Romulo Leite <romulo.leite@windriver.com>
This commit is contained in:
Romulo Leite 2024-05-22 10:42:57 -03:00 committed by Romulo Jose Lyra Leite
parent dd04c3fc84
commit fbe2784827

View File

@ -101,7 +101,7 @@ number_of_users () {
# Add in non-login users that might trigger a parallel build
# based on a timer, or other trigger.
if getent passwd jenkins; then
if getent passwd jenkins >/dev/null 2>&1; then
count=$((count+1))
fi