Skip to content

Commit e0dbe41

Browse files
committed
Update update-repo.sh
1 parent c290c10 commit e0dbe41

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

misc/update-repo.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ function update_container() {
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"
44-
echo -e "${GN}[Success]${CL} /usr/bin/update updated in ${BL}$container${CL}.\n"
44+
45+
if pct exec "$container" -- grep -q "community-scripts/ProxmoxVE" /usr/bin/update; then
46+
echo -e "${GN}[Success]${CL} /usr/bin/update updated in ${BL}$container${CL}.\n"
47+
else
48+
echo -e "${RD}[Error]${CL} /usr/bin/update in ${BL}$container${CL} could not be updated properly.\n"
49+
fi
4550
fi
4651
else
4752
echo -e "${RD}[Error]${CL} /usr/bin/update not found in container ${BL}$container${CL}.\n"

0 commit comments

Comments
 (0)