From 93fdd2e9d48865ee792fb5a76173e733be25e98b Mon Sep 17 00:00:00 2001
From: Paul William <newzealandspaul@gmail.com>
Date: Tue, 5 Nov 2024 16:16:03 +1300
Subject: [PATCH] Inverted the check for tteck repo, so it exits on the correct
 condition

---
 misc/update-repo.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/misc/update-repo.sh b/misc/update-repo.sh
index aee7b661c..aa9c42d0c 100644
--- a/misc/update-repo.sh
+++ b/misc/update-repo.sh
@@ -37,7 +37,7 @@ function update_container() {
     if pct exec "$container" -- [ -e /usr/bin/update ]; then
       if pct exec "$container" -- grep -q "community-scripts/ProxmoxVE" /usr/bin/update; then
         echo -e "${RD}[No Change]${CL} /usr/bin/update is already up to date in ${BL}$container${CL}.\n"
-      elif pct exec "$container" -- grep -q "tteck" /usr/bin/update; then
+      elif pct exec "$container" -- grep -q -v "tteck" /usr/bin/update; then
         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"
@@ -62,4 +62,4 @@ for container in $(pct list | awk '{if(NR>1) print $1}'); do
 done
 
 header_info
-echo -e "${GN}The process is complete. The repositories have been switched to community-scripts/ProxmoxVE.${CL}\n"
\ No newline at end of file
+echo -e "${GN}The process is complete. The repositories have been switched to community-scripts/ProxmoxVE.${CL}\n"