Use --non-interactive flag for sudo in checkupdates
Without the --non-interactive
script gets stuck in a prompt loop if run, well, non-interactively. In my case it ate the whole core, which is unexpected for such a script, clearly used for background checking among other purposes.