use version

This commit is contained in:
Zack Scholl 2020-09-06 08:45:59 -07:00
parent 22c35412ac
commit bdb859c15c
1 changed files with 0 additions and 1 deletions

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)