index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-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' |