diff options
author | Kevin Suo <suokunlong@126.com> | 2020-02-26 16:51:25 +0800 |
---|---|---|
committer | Kevin Suo <suokunlong@126.com> | 2020-02-26 16:51:25 +0800 |
commit | 2a704cd155cf9234032254020fa038c9bc5d1fe1 (patch) | |
tree | b0ab1ce0376b8dda9568c5d220a793a3fa65e3c1 | |
parent | be1a59b7f32f3cfe3218799245728370e2345aca (diff) |
Give me 5 seconds to terminate the process with Ctrl-C key
Hit Ctrl-C during the git checkout process is dangerous.
It is also dangerous to terminate during make.
This commit adds a 5s sleep time between each loop, so
you can terminate the process by Ctrl-C.
-rwxr-xr-x | bibisect_build.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bibisect_build.py b/bibisect_build.py index a16fb29..7d4b82e 100755 --- a/bibisect_build.py +++ b/bibisect_build.py @@ -314,5 +314,8 @@ if __name__ == "__main__": if push_to_bare: cmd = f"git -C {repr(target)} push {repr(target_bare)} master --tags" run_process(cmd) + + print("Sleeping for 5s, type Ctrl-C to terminate this script") + time.sleep(5) print("All Done!") |