diff --git a/testdata/scripts/goversion.txt b/testdata/scripts/goversion.txt index f998ecb..d33c0fb 100644 --- a/testdata/scripts/goversion.txt +++ b/testdata/scripts/goversion.txt @@ -1,9 +1,5 @@ -# TODO: Place file direct to .bin directory -mkdir .bin -cp go.sh .bin/go -cp go.bat .bin/go.bat chmod 777 .bin/go -env PATH=.bin${:}${PATH} +env PATH=${WORK}/.bin${:}${PATH} # Check incorrect go install env GO_VERSION='' @@ -45,11 +41,11 @@ env GO_VERSION='go version go1.15.2 windows/amd64' -- main.go -- package main --- go.sh -- +-- .bin/go -- #!/bin/sh [ -z "$GO_VERSION" ] && exit 1 || echo "$GO_VERSION" --- go.bat -- +-- .bin/go.bat -- @echo off IF DEFINED GO_VERSION (echo %GO_VERSION%) ELSE (exit 1)