From 3435269d236327743d1ee58013c14b5753e1bcec Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Thu, 23 May 2024 20:21:31 +0200 Subject: [PATCH] pm/update --- cd.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cd.sh b/cd.sh index fa3bb4f..4bbfb69 100644 --- a/cd.sh +++ b/cd.sh @@ -154,7 +154,7 @@ cd_set_environment_variables () { CD_PM_CLEAN="dnf clean all" CD_PM_INSTALL="dnf install --assumeyes" CD_PM_QUERY="rpm --query" - CD_CMD_UPDATE="dnf makecache" + CD_PM_UPDATE="dnf makecache" CD_CMD_UPGRADE="dnf upgrade --assumeyes" CD_PKG_PKG="" CD_PM_CONF_PATH="/etc/dnf/dnf.conf" @@ -173,7 +173,7 @@ skip_if_unavailable=False CD_PM_CLEAN="apk cache purge" CD_PM_INSTALL="apk add" CD_PM_QUERY="apk info" - CD_CMD_UPDATE="apk update" + CD_PM_UPDATE="apk update" CD_CMD_UPGRADE="apk upgrade" CD_PKG_PKG="" CD_PM_CONF_PATH="" @@ -185,7 +185,7 @@ skip_if_unavailable=False CD_PM_CLEAN="pacman --sync --clean --noconfirm" CD_PM_INSTALL="pacman --sync --noconfirm" CD_PM_QUERY="pacman --query" - CD_CMD_UPDATE="pacman --sync --refresh" + CD_PM_UPDATE="pacman --sync --refresh" CD_CMD_UPGRADE="pacman --sync --sysupgrade --noconfirm" CD_PKG_PKG="" CD_PM_CONF_PATH="" @@ -197,7 +197,7 @@ skip_if_unavailable=False CD_PM_CLEAN="apt-get clean" CD_PM_INSTALL="apt-get install --assume-yes" CD_PM_QUERY="dpkg-query --show" - CD_CMD_UPDATE="apt-get update" + CD_PM_UPDATE="apt-get update" CD_CMD_UPGRADE="apt-get upgrade --assume-yes" CD_PKG_PKG="apt-utils" CD_PM_CONF_PATH="/etc/apt/apt.conf.d/apt.conf" @@ -214,7 +214,7 @@ Dir::Etc::SourceParts \"\"; esac cd_split cd_echo "CD_PM_CLEAN" \ - "CD_PM_INSTALL" "CD_PM_QUERY" "CD_CMD_UPDATE" "CD_CMD_UPGRADE" + "CD_PM_INSTALL" "CD_PM_QUERY" "CD_PM_UPDATE" "CD_CMD_UPGRADE" cd_split cd_echo "CD_PKG_PKG" "CD_PM_CONF_PATH" "CD_PM_HTTPS_PATH" # specific @@ -444,7 +444,7 @@ local text="" cd_update_packages_catalog () { cd_step "Update packages catalog" - ${CD_CMD_UPDATE} || exit + ${CD_PM_UPDATE} || exit } cd_install_packages_tools () {