Don't use .env file lines where = is at the end of the line

This commit is contained in:
Brandon Rising 2023-06-27 11:53:48 -04:00 committed by Eugene Brodsky
parent a674fff17a
commit c910376bb6

View File

@ -3,7 +3,7 @@ set -e
build_args=""
[[ -f ".env" ]] && build_args=$(awk '$1 ~ /\=/ {print "--build-arg " $0 " "}' .env)
[[ -f ".env" ]] && build_args=$(awk '$1 ~ /\=[^$]/ {print "--build-arg " $0 " "}' .env)
echo "docker-compose build args:"
echo $build_args