mirror of
https://github.com/actions/setup-go.git
synced 2025-05-04 14:14:34 +00:00
Use GitHub releases to download Go versions. (#58)
This commit is contained in:
14
__tests__/verify-go.sh
Executable file
14
__tests__/verify-go.sh
Executable file
@ -0,0 +1,14 @@
|
||||
|
||||
#!/bin/sh
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Must supply go version argument"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
go_version="$(go version)"
|
||||
echo "Found go version '$go_version'"
|
||||
if [ -z "$(echo $go_version | grep $1)" ]; then
|
||||
echo "Unexpected version"
|
||||
exit 1
|
||||
fi
|
Reference in New Issue
Block a user