Only consider the last line
Since other console output may occur during add
This commit is contained in:
parent
b8c0bce0f1
commit
7a3c40d921
|
@ -209,7 +209,7 @@ do
|
||||||
if [[ $(function_exists add_user_${app_name}) == "1" ]]; then
|
if [[ $(function_exists add_user_${app_name}) == "1" ]]; then
|
||||||
echo $"Adding user to ${app_name}"
|
echo $"Adding user to ${app_name}"
|
||||||
app_load_variables ${app_name}
|
app_load_variables ${app_name}
|
||||||
retval=$(add_user_${app_name} "$ADD_USERNAME" "$NEW_USER_PASSWORD")
|
retval=$(add_user_${app_name} "$ADD_USERNAME" "$NEW_USER_PASSWORD" | tail -n 1)
|
||||||
if [[ $retval != '0' ]]; then
|
if [[ $retval != '0' ]]; then
|
||||||
echo $"Failed with error code ${retval}"
|
echo $"Failed with error code ${retval}"
|
||||||
${PROJECT_NAME}-rmuser $ADD_USERNAME --force
|
${PROJECT_NAME}-rmuser $ADD_USERNAME --force
|
||||||
|
|
Loading…
Reference in New Issue