mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
refactor: change regex to be actually universal
This commit is contained in:
+2
-1
@@ -75,6 +75,7 @@ var updateCmd = &cobra.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
func cleanup() {
|
func cleanup() {
|
||||||
|
fmt.Println("Cleaning up")
|
||||||
os.Remove("cocommit.tar.gz")
|
os.Remove("cocommit.tar.gz")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -146,7 +147,7 @@ func updateScript() {
|
|||||||
|
|
||||||
func swapper(exec_path string) {
|
func swapper(exec_path string) {
|
||||||
|
|
||||||
regExp, err := regexp.Compile("cocommit_go-darwin")
|
regExp regexp.MustCompile("cocommit-.+")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user