mirror of https://github.com/schollz/croc.git
update default.txt
This commit is contained in:
parent
dccaff32cf
commit
b7c817a04a
|
@ -33,7 +33,7 @@ install_croc()
|
|||
croc_os="unsupported"
|
||||
croc_arch="unknown"
|
||||
croc_arm=""
|
||||
croc_version="4.1.5"
|
||||
croc_version="6.0.0"
|
||||
|
||||
|
||||
# Termux on Android has $PREFIX set which already ends with /usr
|
||||
|
|
|
@ -30,6 +30,11 @@ func run() (err error) {
|
|||
fmt.Printf("updated README to version %s\n", strings.Split(versionNew, "-")[0])
|
||||
}
|
||||
|
||||
err = replaceInFile("src/install/default.txt", `croc_version="`, `"`, strings.Split(versionNew, "-")[0][1:])
|
||||
if err == nil {
|
||||
fmt.Printf("updated default.txt to version %s\n", strings.Split(versionNew, "-")[0][1:])
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue