aboutsummaryrefslogtreecommitdiff
path: root/test/go/install_go_tool_in_postCreate.sh
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-11-23 20:33:50 +0300
committerGitHub <noreply@github.com>2022-11-23 20:33:50 +0300
commitc4648ab98cdeeb520e7e629c5db4a471ec802954 (patch)
treef7f10e225e46f4ce4b6a71e5564345abb1b13e30 /test/go/install_go_tool_in_postCreate.sh
parent173c7ca3c7ad646e6b9732b5af8d45f08606182e (diff)
go: fix bug - Go doesn't update version if go is already installed (#303)
* go: fix bug - Go doesn't update version if go is already installed * Update tests with bash -c
Diffstat (limited to 'test/go/install_go_tool_in_postCreate.sh')
-rw-r--r--test/go/install_go_tool_in_postCreate.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/go/install_go_tool_in_postCreate.sh b/test/go/install_go_tool_in_postCreate.sh
index dbb086c..54637d9 100644
--- a/test/go/install_go_tool_in_postCreate.sh
+++ b/test/go/install_go_tool_in_postCreate.sh
@@ -5,9 +5,9 @@ set -e
# Optional: Import test library
source dev-container-features-test-lib
-check "mkcert version" mkcert --version | grep "v1.4.2"
-check "mkcert is installed at correct path" which mkcert | grep "/go/bin/mkcert"
-check "golangci-lint version" golangci-lint --version | grep "golangci-lint has version 1.50.0"
+check "mkcert version" bash -c "mkcert --version | grep v1.4.2"
+check "mkcert is installed at correct path" bash -c "which mkcert | grep /go/bin/mkcert"
+check "golangci-lint version" bash -c "golangci-lint --version | grep 'golangci-lint has version 1.50.0'"
# Report result
reportResults