mirror of https://github.com/schollz/croc.git
use version
This commit is contained in:
parent
22c35412ac
commit
bdb859c15c
|
@ -1,6 +1,5 @@
|
|||
#!/bin/bash
|
||||
tmp=$(mktemp -d)
|
||||
VERSION=$(cat ./src/cli/cli.go | grep 'Version = "v' | sed 's/[^0-9.]*\([0-9.]*\).*/\1/')
|
||||
echo $VERSION
|
||||
git clone -b v${VERSION} --depth 1 https://github.com/schollz/croc $tmp/croc-${VERSION}
|
||||
(cd $tmp/croc-${VERSION} && go mod tidy && go mod vendor)
|
||||
|
|
Loading…
Reference in New Issue