This commit is contained in:
2026-07-25 18:06:15 -05:00
parent f5d7577219
commit 6362844f1a
3 changed files with 11 additions and 5 deletions
+3 -3
View File
@@ -22,8 +22,7 @@ SWITCH_TO_V2() {
return 1
fi
if [[ "$current_branch" == "V2" ]]; then
echo -e "${idsCL[Green]}TA-ProxMenu is already using 'V2'.${idsCL[Default]}"
return 0
exec /opt/idssys/ta-proxmenu/run.sh
fi
if [[ -n "$(git -C "$repository" status --porcelain --untracked-files=normal)" ]]; then
echo -e "${idsCL[LightYellow]}TA-ProxMenu has local changes; branch switching was refused to preserve them.${idsCL[Default]}"
@@ -68,7 +67,8 @@ SWITCH_TO_V2() {
fi
rm -f /var/cache/ta-proxmenu/update-status 2>/dev/null || true
echo -e "${idsCL[Green]}TA-ProxMenu is now using branch 'V2'.${idsCL[Default]}"
echo -e "${idsCL[Green]}TA-ProxMenu is now using branch 'V2'. Loading the V2 menu...${idsCL[Default]}"
exec /opt/idssys/ta-proxmenu/run.sh
}
if [[ "${1:-}" == "V2" ]]; then