diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-09 09:21:40 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-09 09:21:40 +0000 |
commit | 1e19ef509402455cff9e25c565e390e43723e424 (patch) | |
tree | 348e4b7697780be10399bd78c8dec06c521152aa | |
parent | 9b85e2e1a8d8cf37d69f856bd83014a19cf9b043 (diff) | |
download | cpt-1e19ef509402455cff9e25c565e390e43723e424.tar.gz |
kiss: Prevent Ctrl+C or > 0 exit from pager causing kiss to abort
FossilOrigin-Name: c658af6c544ef3818215b492076e4c5b0a050d5a0e00ec6b2e14a3b05abb1f85
-rwxr-xr-x | kiss | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1147,11 +1147,16 @@ pkg_updates() { # Show a diff of each new change to the repositories. # This spawns the user's set PAGER with a fallback to less. + # + # Disable this warning as the behavior (C may run when A is true) + # is intentional and fine. It is to prevent pager error from + # causing the package manager to abort. + # shellcheck disable=2015 [ -s "$log_file" ] && { log "Saved update log to $log_file" [ "$KISS_AUDIT" ] && "${PAGER:-less}" "$log_file" - } + } ||: # Tell 'pkg_build' to always prompt before build. pkg_update=1 |