From f004d548838facdf183c46ab39b3f90346a3a468 Mon Sep 17 00:00:00 2001 From: Erik Wilson Date: Thu, 8 Apr 2021 17:42:27 -0700 Subject: [PATCH] Fix up vagrant provision scripts Signed-off-by: Erik Wilson --- scripts/provision/vagrant | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/provision/vagrant b/scripts/provision/vagrant index 70adbe3a61..663d9d6e18 100755 --- a/scripts/provision/vagrant +++ b/scripts/provision/vagrant @@ -51,7 +51,7 @@ EOF mkdir -p ${GOPATH}/bin mkdir -p /go ln -sf $GOPATH/bin /go/bin -sed ':a;N;$!ba;s/\\\n/ /g' /tmp/docker-run +sed ':a;N;$!ba;s/\\\n/ /g' /tmp/docker-run export BINDIR=/go/bin export GOPATH=/go export HOME=/tmp @@ -70,7 +70,7 @@ EOF # --- Utility function to download go download_go() { - goversion=$(grep "^FROM " Dockerfile.dapper | sed -e 's/^FROM golang:\(.*\)-.*/\1/') + goversion=$(grep "golang:" Dockerfile.dapper | sed -e 's/.*golang:\(.*\)-.*/\1/') if [ -z "$goversion" ]; then echo 'Cannot find version of go to fetch' return 1