pkg/upgrade
This commit is contained in:
parent
14ef58e1fc
commit
8d86912ab1
1 changed files with 13 additions and 13 deletions
|
@ -1004,18 +1004,6 @@ spcd_f_pm_query() {
|
|||
esac
|
||||
}
|
||||
|
||||
spcd_f_pm_upgrade() {
|
||||
spcd_step "Upgrade"
|
||||
case "${SPCD_PM}" in
|
||||
"${SPCD_PM_APK}") spcd_run apk upgrade ;;
|
||||
"${SPCD_PM_APT}") spcd_run apt-get upgrade --assume-yes ;;
|
||||
"${SPCD_PM_DNF}") spcd_run dnf upgrade --assumeyes ;;
|
||||
"${SPCD_PM_PACMAN}") spcd_run pacman --sync --sysupgrade --noconfirm ;;
|
||||
"${SPCD_PM_ZYPPER}") spcd_run zypper --non-interactive update ;;
|
||||
*) ;;
|
||||
esac
|
||||
}
|
||||
|
||||
# ╭───┬────┬───────╮
|
||||
# │ f │ pm │ https │
|
||||
# ╰───┴────┴───────╯
|
||||
|
@ -1108,6 +1096,18 @@ spcd_f_pm_pkg_update() {
|
|||
esac
|
||||
}
|
||||
|
||||
spcd_f_pm_pkg_upgrade() {
|
||||
spcd_step "Upgrade"
|
||||
case "${SPCD_PM}" in
|
||||
"${SPCD_PM_APK}") spcd_run apk upgrade ;;
|
||||
"${SPCD_PM_APT}") spcd_run apt-get upgrade --assume-yes ;;
|
||||
"${SPCD_PM_DNF}") spcd_run dnf upgrade --assumeyes ;;
|
||||
"${SPCD_PM_PACMAN}") spcd_run pacman --sync --sysupgrade --noconfirm ;;
|
||||
"${SPCD_PM_ZYPPER}") spcd_run zypper --non-interactive update ;;
|
||||
*) ;;
|
||||
esac
|
||||
}
|
||||
|
||||
# ╭───┬─────╮
|
||||
# │ s │ dns │
|
||||
# ╰───┴─────╯
|
||||
|
@ -1594,7 +1594,7 @@ spcd_main() {
|
|||
spcd_step_in "Packages"
|
||||
spcd_f_pm_https_verify
|
||||
spcd_f_pm_pkg_update
|
||||
spcd_f_pm_upgrade
|
||||
spcd_f_pm_pkg_upgrade
|
||||
spcd_step__packages_install_dos2unix
|
||||
spcd_step__packages_install_git
|
||||
spcd_step_out
|
||||
|
|
Loading…
Reference in a new issue