From 7a3c40d921b6888480d623a4f7bca8aaa40c40dc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 20 Nov 2016 10:47:57 +0000 Subject: [PATCH] Only consider the last line Since other console output may occur during add --- src/freedombone-adduser | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-adduser b/src/freedombone-adduser index 92898c79..70657e71 100755 --- a/src/freedombone-adduser +++ b/src/freedombone-adduser @@ -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