1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 08:02:33 +03:00

use version

This commit is contained in:
Zack Scholl 2020-09-06 08:45:59 -07:00
parent 22c35412ac
commit bdb859c15c

View File

@ -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)