kiss: handle package manager upgrades first.

This commit is contained in:
Dylan Araps 2019-08-31 15:09:44 +03:00
parent 44bbff3ecd
commit 8ed61fa9ad
1 changed files with 19 additions and 0 deletions

19
kiss
View File

@ -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