redirect stderr to stdout

parent 1330110b
Pipeline #6531 passed with stages
in 66 minutes and 47 seconds
...@@ -73,11 +73,11 @@ krb_tgt() { ...@@ -73,11 +73,11 @@ krb_tgt() {
case $krb_action in case $krb_action in
init) init)
$ECHO_CMD "${op_pwd}" | $KINIT_CMD "${op_login}" $ECHO_CMD "${op_pwd}" | $KINIT_CMD "${op_login}" 2>&1
retval=$? retval=$?
;; ;;
destroy) destroy)
$KDESTROY_CMD $KDESTROY_CMD 2>&1
retval=$? retval=$?
;; ;;
*) *)
...@@ -105,7 +105,7 @@ ipa_add_user() { ...@@ -105,7 +105,7 @@ ipa_add_user() {
lastname=$3 lastname=$3
password=$4 password=$4
$ECHO_CMD "${password}" | $IPA_CMD user-add "${login}" --first="${firstname}" --last="${lastname}" $ECHO_CMD "${password}" | $IPA_CMD user-add "${login}" --first="${firstname}" --last="${lastname}" 2>&1
retval=$? retval=$?
message 'user-add' $retval message 'user-add' $retval
...@@ -125,7 +125,7 @@ ipa_group_add_admins() { ...@@ -125,7 +125,7 @@ ipa_group_add_admins() {
local login= retval= local login= retval=
login=$1 login=$1
$IPA_CMD group-add-member admins --users="${login}" $IPA_CMD group-add-member admins --users="${login}" 2>&1
retval=$? retval=$?
message 'group-add-member' $retval message 'group-add-member' $retval
...@@ -145,7 +145,7 @@ ipa_del_user() { ...@@ -145,7 +145,7 @@ ipa_del_user() {
local login= retval= local login= retval=
login=$1 login=$1
$IPA_CMD user-del "${login}" $IPA_CMD user-del "${login}" 2>&1
retval=$? retval=$?
message 'user-del' $retval message 'user-del' $retval
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment