commit 8ed61fa9ad2bb3fa69b9003484474f29ba6a5e36 parent 44bbff3ecd33e587b67b7fb620841bccafe9f8ed Author: Dylan Araps <dylan.araps@gmail.com> Date: Sat, 31 Aug 2019 15:09:44 +0300 kiss: handle package manager upgrades first. Diffstat:
M | kiss | | | 19 | +++++++++++++++++++ |
1 file changed, 19 insertions(+), 0 deletions(-)
diff --git a/kiss b/kiss @@ -894,6 +894,25 @@ pkg_updates() { } done + # If the package manager has an update, handle it first. + case $outdated in + *" kiss "*) + log "Detected package manager update" \ + "The package manager will be updated first" \ + "Continue?: Press Enter to continue or Ctrl+C to abort here" + + read -r || exit + + pkg_build kiss + args i kiss + + log "Updated the package manager" \ + "Re-run 'kiss update' to update your system" + + exit 0 + ;; + esac + # Disable globbing. set -f