mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-09-28 12:22:39 -06:00
kiss: handle package manager upgrades first.
This commit is contained in:
parent
44bbff3ecd
commit
8ed61fa9ad
19
kiss
19
kiss
@ -894,6 +894,25 @@ pkg_updates() {
|
|||||||
}
|
}
|
||||||
done
|
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.
|
# Disable globbing.
|
||||||
set -f
|
set -f
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user