Skip to content

Commit f4776f8

Browse files
committed
fix(builder): escape \ to avoid errors in serialization of Dockerfile
1 parent bc83b63 commit f4776f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/templates/builder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ fi
158158

159159
# safely escape double quotes
160160
RELEASE_INFO=$(echo $RELEASE_INFO | sed -e 's/\"/\\\"/g')
161-
DOCKERFILE=$(echo $DOCKERFILE | sed -e 's/\"/\\\"/g')
161+
DOCKERFILE=$(echo $DOCKERFILE | sed -e 's/\"/\\\"/g' -e 's/ \\/ /g')
162162

163163
puts-step "Launching... "
164164
URL="{{ .deis_controller_protocol }}://{{ .deis_controller_host }}:{{ .deis_controller_port }}/api/hooks/build"

0 commit comments

Comments
 (0)