fix: keep terminal open after moonarch-update completes
All checks were successful
Update PKGBUILD version / update-pkgver (push) Successful in 3s
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:
parent
2363e76b4a
commit
ab066724f0
@ -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..."
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user