fix: keep terminal open after moonarch-update completes
All checks were successful
Update PKGBUILD version / update-pkgver (push) Successful in 3s

Add "press any key" prompt when running interactively (stdin is a TTY).
Remove dead wrapper in defaults/bin/ that was overwritten by PKGBUILD.
This commit is contained in:
nevaforget 2026-04-10 07:33:46 +02:00
parent 2363e76b4a
commit ab066724f0
2 changed files with 6 additions and 7 deletions

View File

@ -1,7 +0,0 @@
#!/usr/bin/bash
# ABOUTME: Interactive system update wrapper for use as Waybar on-click action.
# ABOUTME: Runs paru and waits for keypress before closing the terminal.
paru
echo
read -n 1 -s -r -p "Press any key to close..."

View File

@ -105,3 +105,9 @@ log ""
log "============================================"
log " Moonarch update complete!"
log "============================================"
# Keep terminal open when launched from a GUI (e.g. Waybar on-click)
if [[ -t 0 ]]; then
echo
read -n 1 -s -r -p "Press any key to close..."
fi