tools: allow for fast exiting in compare_pr_to_master.v through Ctrl-C (or any failed command)

This commit is contained in:
Delyan Angelov 2024-10-20 17:11:51 +03:00
parent ce63593800
commit 1cf38ed501
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED

View file

@ -12,7 +12,11 @@ fn gcommit() string {
}
fn r(cmd string) {
os.system(cmd)
res := os.system(cmd)
if res != 0 {
eprintln('> failed running: `${cmd}`')
exit(1)
}
}
fn xtime(cmd string) {