From 56334616dc486ad92b744a77b7c64a2db0968f27 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:08:07 +0100 Subject: [PATCH] Update update-repo.sh --- misc/update-repo.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/misc/update-repo.sh b/misc/update-repo.sh index db8335ab..38774d0f 100644 --- a/misc/update-repo.sh +++ b/misc/update-repo.sh @@ -35,12 +35,11 @@ function update_container() { echo -e "${BL}[Info]${GN} Checking /usr/bin/update in ${BL}$container${CL} (OS: ${GN}$os${CL})" if pct exec "$container" -- [ -e /usr/bin/update ]; then - pct exec "$container" -- bash -c "sed -i 's/tteck\\/Proxmox/community-scripts\\/ProxmoxVE/g' /usr/bin/update" - if pct exec "$container" -- grep -q "community-scripts/ProxmoxVE" /usr/bin/update; then - echo -e "${GN}[Success]${CL} /usr/bin/update updated in ${BL}$container${CL}.\n" + echo -e "${RD}[No Change]${CL} /usr/bin/update is already up to date in ${BL}$container${CL}.\n" else - echo -e "${RD}[No Change]${CL} No updates made to /usr/bin/update in ${BL}$container${CL}.\n" + pct exec "$container" -- bash -c "sed -i 's/tteck\\/Proxmox/community-scripts\\/ProxmoxVE/g' /usr/bin/update" + echo -e "${GN}[Success]${CL} /usr/bin/update updated in ${BL}$container${CL}.\n" fi else echo -e "${RD}[Error]${CL} /usr/bin/update not found in container ${BL}$container${CL}.\n"