Skip to content

Commit

Permalink
ZENKO-3700: fix create-user script to fail with non-zero
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderchan-scality committed Oct 29, 2021
1 parent 504b269 commit 0fedba4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ retry() {
sleep 5
done

[ $count -lt 10 ] || echo "Failed to create app user."
if [ $count -ge 10 ]; then
echo "Failed to create app user."
exit 1
fi
}

retry create_user
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ retry() {
sleep 5
done

[ $count -lt 10 ] || echo "Failed to create app user."
if [ $count -ge 10 ]; then
echo "Failed to create app user."
exit 1
fi
}

retry create_user

0 comments on commit 0fedba4

Please sign in to comment.