Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit 22e3a34

Browse files
committed
Escape all build variables
Signed-off-by: tzununbekov <[email protected]>
1 parent 52cf71d commit 22e3a34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildtemplate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ spec:
4040
cat <<EOF > Dockerfile
4141
FROM amazonlinux
4242

43-
RUN LATEST_VERSION=$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep "Location:" | awk -F "/" '{print $NF}' | tr -d "\r" ) \
44-
&& curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/${LATEST_VERSION}/aws-custom-runtime > /opt/aws-custom-runtime \
43+
RUN LATEST_VERSION=\$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep "Location:" | awk -F "/" '{print \$NF}' | tr -d "\r" ) \
44+
&& curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/\${LATEST_VERSION}/aws-custom-runtime > /opt/aws-custom-runtime \
4545
&& chmod +x /opt/aws-custom-runtime
4646

4747
ENV LAMBDA_TASK_ROOT "/opt"

0 commit comments

Comments
 (0)