We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c0d0ce commit d703e9eCopy full SHA for d703e9e
1 file changed
aws_china_mfa/aws_china_mfa.sh
@@ -158,17 +158,16 @@ main() {
158
159
set_credentials "$sourced" "$aws_profile" "$access_key" "$secret_key" "$session_token"
160
161
+ echo "" >&2
162
+ echo "✓ Successfully authenticated to AWS China" >&2
163
164
+
165
if [[ $sourced -eq 1 ]]; then
- echo "" >&2
- echo "✓ Successfully authenticated to AWS China" >&2
166
echo "Exported AWS credentials:" >&2
167
echo "" >&2
168
env | grep '^AWS_' | sort >&2
- else
169
170
171
+ elif [[ -t 1 ]]; then
+ # stdout is a terminal (not piped to eval)
172
echo "Copy and paste the export commands above to apply credentials." >&2
173
fi
174
}
0 commit comments