update default.txt

This commit is contained in:
Zack Scholl 2019-05-02 16:45:37 -07:00
parent dccaff32cf
commit b7c817a04a
2 changed files with 6 additions and 1 deletions

View File

@ -33,7 +33,7 @@ install_croc()
croc_os="unsupported" croc_os="unsupported"
croc_arch="unknown" croc_arch="unknown"
croc_arm="" croc_arm=""
croc_version="4.1.5" croc_version="6.0.0"
# Termux on Android has $PREFIX set which already ends with /usr # Termux on Android has $PREFIX set which already ends with /usr

View File

@ -30,6 +30,11 @@ func run() (err error) {
fmt.Printf("updated README to version %s\n", strings.Split(versionNew, "-")[0]) 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 return
} }