Skip to content

Commit

Permalink
make "wrench script rebuild" install Go first
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
emidoots committed Dec 23, 2022
1 parent 3b64791 commit 251cb96
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions internal/wrench/scripts/rebuild.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package scripts

func init() {
Scripts = append(Scripts, Script{
Command: "rebuild",
Args: nil,
Description: "wrench rebuilds and reinstalls itself, installing prerequisites (Go) if needed",
Execute: func(args ...string) error {
return Sequence(
Exec("wrench script install-go"),
Exec("wrench script rebuild"),
)()
},
})
}

0 comments on commit 251cb96

Please sign in to comment.