From e0dbe419da0ab0d0247dc7646f474a940bd1128a Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:11:00 +0100 Subject: [PATCH] Update update-repo.sh --- misc/update-repo.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/misc/update-repo.sh b/misc/update-repo.sh index 0f08e6c95..aee7b661c 100644 --- a/misc/update-repo.sh +++ b/misc/update-repo.sh @@ -41,7 +41,12 @@ function update_container() { echo -e "${RD}[Warning]${CL} /usr/bin/update in ${BL}$container${CL} contains a different entry (${RD}tteck${CL}). No changes made.\n" else 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" + + 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" + else + echo -e "${RD}[Error]${CL} /usr/bin/update in ${BL}$container${CL} could not be updated properly.\n" + fi fi else echo -e "${RD}[Error]${CL} /usr/bin/update not found in container ${BL}$container${CL}.\n"