Skip to content

Commit a9bbdd3

Browse files
authored
fix: remove 2>&1 stderr redirect from atmos auth env calls (#983)
1 parent 42d67b5 commit a9bbdd3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rootfs/etc/profile.d/atmos.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ function use-identity() {
2020
local auth_output
2121
if [ $# -eq 0 ]; then
2222
# No arguments: bring up the selector by passing --identity with no value
23-
if ! auth_output=$(atmos auth env --identity 2>&1); then
24-
echo "Error running atmos auth: $auth_output" >&2
23+
if ! auth_output=$(atmos auth env --identity); then
24+
echo "Error running atmos auth" >&2
2525
return 1
2626
fi
2727
else
2828
# Arguments provided: pass --identity=<value> with the first argument, then any additional flags
29-
if ! auth_output=$(atmos auth env --identity="$1" "${@:2}" 2>&1); then
30-
echo "Error running atmos auth: $auth_output" >&2
29+
if ! auth_output=$(atmos auth env --identity="$1" "${@:2}"); then
30+
echo "Error running atmos auth" >&2
3131
return 1
3232
fi
3333
fi

0 commit comments

Comments
 (0)