Last active
May 20, 2020 14:51
-
-
Save kingnebby/fe79535ba9837c8608d424c1ca3b3259 to your computer and use it in GitHub Desktop.
Adding in the saving feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AZ_ENV_FILE=$HOME/.my-env/umbrella-corp-env-az | |
touch $AZ_ENV_FILE | |
source <(cat $AZ_ENV_FILE) | |
env-az() { | |
# | |
# ... all read-from-user code that we previously wrote | |
# | |
# Can run this before calling the env-az-setup command | |
echo "\\ | |
export AZ_SUB_ENV=$AZ_SUB_ENV;\\n\\ | |
export AZ_AKS_ENV=$AZ_AKS_ENV;\\n\\ | |
" > $AZ_ENV_FILE | |
env-az-setup; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment