mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
bump
This commit is contained in:
parent
990696e419
commit
83aef2eac5
3 changed files with 5 additions and 5 deletions
|
@ -36,7 +36,7 @@ func Run() (err error) {
|
||||||
app := cli.NewApp()
|
app := cli.NewApp()
|
||||||
app.Name = "croc"
|
app.Name = "croc"
|
||||||
if Version == "" {
|
if Version == "" {
|
||||||
Version = "v10.2.5"
|
Version = "v-990696e"
|
||||||
}
|
}
|
||||||
app.Version = Version
|
app.Version = Version
|
||||||
app.Compiled = time.Now()
|
app.Compiled = time.Now()
|
||||||
|
|
|
@ -528,7 +528,7 @@ main() {
|
||||||
local autocomplete_install_rcode
|
local autocomplete_install_rcode
|
||||||
|
|
||||||
croc_bin_name="croc"
|
croc_bin_name="croc"
|
||||||
croc_version="10.2.5"
|
croc_version=""
|
||||||
croc_dl_ext="tar.gz"
|
croc_dl_ext="tar.gz"
|
||||||
croc_base_url="https://github.com/schollz/croc/releases/download"
|
croc_base_url="https://github.com/schollz/croc/releases/download"
|
||||||
prefix="${1}"
|
prefix="${1}"
|
||||||
|
|
|
@ -46,7 +46,7 @@ func replaceInFile(fname, start, end, replacement string) (err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
oldVersion := GetStringInBetween(string(b), start, end)
|
oldVersion := getStringInBetween(string(b), start, end)
|
||||||
if oldVersion == "" {
|
if oldVersion == "" {
|
||||||
err = fmt.Errorf("nothing")
|
err = fmt.Errorf("nothing")
|
||||||
return
|
return
|
||||||
|
@ -61,8 +61,8 @@ func replaceInFile(fname, start, end, replacement string) (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetStringInBetween Returns empty string if no start string found
|
// getStringInBetween Returns empty string if no start string found
|
||||||
func GetStringInBetween(str string, start string, end string) (result string) {
|
func getStringInBetween(str, start, end string) (result string) {
|
||||||
s := strings.Index(str, start)
|
s := strings.Index(str, start)
|
||||||
if s == -1 {
|
if s == -1 {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue