remove interactivity
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user