bugfix: display other envs than 'dev'

This commit is contained in:
=
2020-03-05 13:40:38 +01:00
parent db3526bf1a
commit 06f373d5e9

View File

@ -54,11 +54,11 @@ function getAWSenv --description 'verify and set environment'
end end
if [ $aws_account_id = $DEV_ACCOUNT_ID ] if [ $aws_account_id = $DEV_ACCOUNT_ID ]
set -g env dev set -g env dev
else if [ $aws_account_id = $STG_ACCOUNT_ID] else if [ $aws_account_id = $STG_ACCOUNT_ID ]
set -g env stg set -g env stg
else if [ $aws_account_id = $PROD_ACCOUNT_ID] else if [ $aws_account_id = $PROD_ACCOUNT_ID ]
set -g env prod set -g env prod
else if [ $aws_account_id = $OPS_ACCOUNT_ID] else if [ $aws_account_id = $OPS_ACCOUNT_ID ]
set -g env ops set -g env ops
else else
set -ge env set -ge env