Skip to content

Commit

Permalink
Use sed only if S3_AWS_BUCKET_NAME is set
Browse files Browse the repository at this point in the history
  • Loading branch information
fagiani authored Aug 1, 2022
1 parent 4cc6e6c commit 04644be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ if compgen -G "${env_dir}/*" > /dev/null; then
done
fi

sed -i "s/S3_AWS_BUCKET_NAME/$S3_AWS_BUCKET_NAME/g" S3file
if [ ! -z "${S3_AWS_BUCKET_NAME}" ]; then
sed -i "s/S3_AWS_BUCKET_NAME/$S3_AWS_BUCKET_NAME/g" S3file
fi

while read line; do
case "$line" in
s3://*)
Expand Down

0 comments on commit 04644be

Please # to comment.