Don't cut since export ... isn't in the env file

Closes coop-cloud/abra#69.
This commit is contained in:
Luke Murphy 2020-12-31 16:55:33 +01:00
parent b6928959cb
commit 55324524ca
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

4
abra
View File

@ -378,12 +378,12 @@ get_app_secrets() {
get_app_passwords() { get_app_passwords() {
# FIXME 3wc: requires bash 4, use for loop instead # FIXME 3wc: requires bash 4, use for loop instead
mapfile -t PASSWORDS < <(grep "SECRET.*PASSWORD.*VERSION.*" "$ENV_FILE" | cut -d ' ' -f2-) mapfile -t PASSWORDS < <(grep "SECRET.*PASSWORD.*VERSION.*" "$ENV_FILE")
} }
get_app_keys() { get_app_keys() {
# FIXME 3wc: requires bash 4, use for loop instead # FIXME 3wc: requires bash 4, use for loop instead
mapfile -t KEYS < <(grep "SECRET.*KEY.*VERSION.*" "$ENV_FILE" | cut -d' ' -f2-) mapfile -t KEYS < <(grep "SECRET.*KEY.*VERSION.*" "$ENV_FILE")
} }
load_instance() { load_instance() {