remove interactivity

This commit is contained in:
2026-10-20 07:30:04 -06:00
parent 76fceee115
commit d8d93a45b5
6 changed files with 20 additions and 18 deletions
+7
View File
@@ -48,6 +48,13 @@ if [[ -z "$UPDATE_REEXECED" ]]; then
exec ~/.local/bin/update
fi
# Ask for the password once, then keep sudo's cached credentials fresh until
# update exits, so long-running hooks don't stop for a password again.
sudo -v || exit 1
while kill -0 $$ 2>/dev/null; do sudo -n -v; sleep 60; done 2>/dev/null &
SUDO_KEEPALIVE_PID=$!
trap 'kill "$SUDO_KEEPALIVE_PID" 2>/dev/null' EXIT
FAILED=()
[[ -n "$UPDATE_PULL_FAILED" ]] && FAILED+=("git pull")