Skip to content
Snippets Groups Projects
Commit 7a3c40d9 authored by Bob Mottram's avatar Bob Mottram
Browse files

Only consider the last line

Since other console output may occur during add
parent b8c0bce0
No related branches found
No related tags found
No related merge requests found
......@@ -209,7 +209,7 @@ do
if [[ $(function_exists add_user_${app_name}) == "1" ]]; then
echo $"Adding user to ${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
echo $"Failed with error code ${retval}"
${PROJECT_NAME}-rmuser $ADD_USERNAME --force
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment