Skip to content

Commit f37a95d

Browse files
authored
Merge pull request #66 from newzealandpaul/newzealandpaul-update-repo2
Inverted the check for tteck repo, so it exits on the correct condition
2 parents 0f493c1 + 93fdd2e commit f37a95d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/update-repo.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function update_container() {
3737
if pct exec "$container" -- [ -e /usr/bin/update ]; then
3838
if pct exec "$container" -- grep -q "community-scripts/ProxmoxVE" /usr/bin/update; then
3939
echo -e "${RD}[No Change]${CL} /usr/bin/update is already up to date in ${BL}$container${CL}.\n"
40-
elif pct exec "$container" -- grep -q "tteck" /usr/bin/update; then
40+
elif pct exec "$container" -- grep -q -v "tteck" /usr/bin/update; then
4141
echo -e "${RD}[Warning]${CL} /usr/bin/update in ${BL}$container${CL} contains a different entry (${RD}tteck${CL}). No changes made.\n"
4242
else
4343
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
6262
done
6363

6464
header_info
65-
echo -e "${GN}The process is complete. The repositories have been switched to community-scripts/ProxmoxVE.${CL}\n"
65+
echo -e "${GN}The process is complete. The repositories have been switched to community-scripts/ProxmoxVE.${CL}\n"

0 commit comments

Comments
 (0)