From 0ca0974cf836238538983171a414d67dee0a0f07 Mon Sep 17 00:00:00 2001 From: Erik Osterman Date: Thu, 19 Mar 2026 21:20:53 -0500 Subject: [PATCH] fix: remove 2>&1 stderr redirect from atmos auth env calls Let stderr from atmos flow directly to the terminal for real-time feedback, while only capturing stdout (env exports) for evaluation. --- rootfs/etc/profile.d/atmos.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rootfs/etc/profile.d/atmos.sh b/rootfs/etc/profile.d/atmos.sh index abec0930..a65551a4 100644 --- a/rootfs/etc/profile.d/atmos.sh +++ b/rootfs/etc/profile.d/atmos.sh @@ -20,14 +20,14 @@ function use-identity() { local auth_output if [ $# -eq 0 ]; then # No arguments: bring up the selector by passing --identity with no value - if ! auth_output=$(atmos auth env --identity 2>&1); then - echo "Error running atmos auth: $auth_output" >&2 + if ! auth_output=$(atmos auth env --identity); then + echo "Error running atmos auth" >&2 return 1 fi else # Arguments provided: pass --identity= with the first argument, then any additional flags - if ! auth_output=$(atmos auth env --identity="$1" "${@:2}" 2>&1); then - echo "Error running atmos auth: $auth_output" >&2 + if ! auth_output=$(atmos auth env --identity="$1" "${@:2}"); then + echo "Error running atmos auth" >&2 return 1 fi fi