Skip to content

Commit

Permalink
build: fix reading of env variables while building in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fagia committed Jul 24, 2019
1 parent b1e389d commit da0b2fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .make/utils/get_byor_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ else
IFS=',' read -r -a vars_list <<< "$vars"
for var in ${vars_list[@]}; do
if [ -z "${BYOR_ENV}_${var}" ]; then
export "${var}"="${BYOR_ENV}_${var}";
BYOR_ENV_VAR="${BYOR_ENV}_${var}"
export "${var}"="${!BYOR_ENV_VAR}";
else
export "${var}"="${var}";
export "${var}"="${!var}";
fi
done
fi
3 changes: 1 addition & 2 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,4 @@ fileignoreconfig:
checksum: f2831155da2da77b3250aebaff38937804c23dd2c4f7365f59f1e1cd936d79c5
ignore_detectors: []
- filename: .make/utils/get_byor_env.sh
checksum: 094d85ce59c017ea47a2f9b3c80305a5a7d405e7620b3477cf82209acbcd9d69
ignore_detectors: []
ignore_detectors: [filename]

0 comments on commit da0b2fb

Please sign in to comment.