<!-- If you are reporting an issue with the Google Cloud Build service, please report it to our public issue tracker at https://issuetracker.google.com/issues/new?component=190802&template=1162743. This GitHub issue tracker is intended for bugs with the community builder images specifically. If you're not sure where to report this issue, use the public issue tracker: https://issuetracker.google.com/issues/new?component=190802&template=1162743 --> ## Affected builder image `gcr.io/cloud-builders-community/envsubst` ## Expected Behavior When passing `-s` multiple times, only the last one is applied. ## Actual Behavior Accumulate the env vars to substitute and apply the substitution for them all. ## Steps to Reproduce the Problem ```sh mkdir /tmp/test123 && cd /tmp/test123 wget 'https://github.com/GoogleCloudPlatform/cloud-builders-community/raw/master/envsubst/entrypoint.bash' echo '$A $B $C' > to_sub export A=Hello export B=World export C=":)" bash entrypoint.bash -s '$A' -s '$B' -s '$C' to_sub cat to_sub ``` output: `$A $B :)` ## Additional Info