os.Exec() is smarter now
This commit is contained in:
parent
4546d067dd
commit
c57bb42f20
11
main.go
11
main.go
|
@ -76,9 +76,14 @@ func main() {
|
|||
log.Info("")
|
||||
okExit("")
|
||||
}
|
||||
shell.Exec([]string{"git", "diff"})
|
||||
shell.Exec([]string{"git", "commit", "--all"})
|
||||
okExit("forge done")
|
||||
if err := shell.Exec([]string{"git", "diff"}); err != nil {
|
||||
badExit(err)
|
||||
}
|
||||
if err := shell.ExecCheck([]string{"git", "commit", "--all"}); err != nil {
|
||||
badExit(err)
|
||||
}
|
||||
log.Info("git commit ok. forge done")
|
||||
okExit("")
|
||||
}
|
||||
|
||||
if argv.Checkout != nil {
|
||||
|
|
Loading…
Reference in New Issue