index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-09-21 19:10:02 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-09-21 19:19:42 +0200 |
commit | 49afef68b9bc1a9bf4cf61a8a5cc8040fd091ab6 (patch) | |
tree | 8865c7f47dfa85ab401ff3ad21cff2953c87a61c /bin/nit-picker | |
parent | 967567a352b692ac8d5d68f8c8146a41daadb2f4 (diff) |
-rwxr-xr-x | bin/nit-picker | 12 |
diff --git a/bin/nit-picker b/bin/nit-picker index 4caa4e0..2332d1c 100755 --- a/bin/nit-picker +++ b/bin/nit-picker @@ -88,13 +88,13 @@ build_duration_check=0 while pgrep -x ii >/dev/null \ || ! ${irc}; do + if [ "$(date +%s)" -gt "$((build_duration_check + 60*60*24))" ]; then + check_build_duration=true + build_duration_check=$(date +%s) + else + check_build_duration=false + fi if [ $# -eq 0 ]; then - if [ "$(date +%s)" -gt "$((build_duration_check + 60*60*24))" ]; then - check_build_duration=true - build_duration_check=$(date +%s) - else - check_build_duration=false - fi # shellcheck disable=SC2016 { printf 'SELECT DISTINCT' |