Merge pull request #66 from newzealandpaul/newzealandpaul-update-repo2
Some checks are pending
Deploy Next.js site to Pages / build (push) Waiting to run
Deploy Next.js site to Pages / deploy (push) Blocked by required conditions

Inverted the check for tteck repo, so it exits on the correct condition
This commit is contained in:
CanbiZ 2024-11-05 06:52:45 +01:00 committed by GitHub
commit f37a95db4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"
echo -e "${GN}The process is complete. The repositories have been switched to community-scripts/ProxmoxVE.${CL}\n"