Vendor the command set the menu and shell depend on

This commit is contained in:
SirBlob committed 2026-09-19 23:57:12 -04:00
1 parent 9501f2bb4d
commit c5434026a8
179 files changed
+12414 -54

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
# blob:summary=Prompt for sudo once and keep the credential alive in the background.
# blob:requires-sudo=true
sudo -v
while true; do sudo -n true; sleep 60; done 2>/dev/null &
SUDO_KEEPALIVE_PID=$!
trap "kill $SUDO_KEEPALIVE_PID 2>/dev/null" EXIT