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:
parent
dd04c3fc84
commit
fbe2784827
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user