fix(moonup): keep terminal open on errors via EXIT trap
The previous end-of-script `read` never ran when `set -e` aborted mid-way (pacman conflict, paru failure, Ctrl+C), so foot closed on errors — exactly when the user most needs to see the output. Move the pause into a trap on EXIT, gated by `MOONUP_WAIT=1` so CLI use stays non-interactive. Waybar on-click now sets the env var.
This commit is contained in:
@@ -217,7 +217,7 @@
|
||||
},
|
||||
"exec": "moonarch-waybar-updates",
|
||||
"interval": 60,
|
||||
"on-click": "foot moonarch-update"
|
||||
"on-click": "foot env MOONUP_WAIT=1 moonarch-update"
|
||||
},
|
||||
"custom/notification": {
|
||||
"tooltip": true,
|
||||
|
||||
Reference in New Issue
Block a user