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
+2 -1
View File
@@ -2,6 +2,7 @@
bash <(curl -sL https://go.scity.us/install-tapm) bash <(curl -sL https://go.scity.us/install-tapm)
To switch an installed main-branch copy to V2 for testing: To update an installed main-branch copy, switch it to V2, and immediately load
the V2 menu:
tapm V2 tapm V2
+6 -1
View File
@@ -6,6 +6,12 @@
source /opt/idssys/defaults/default.inc source /opt/idssys/defaults/default.inc
source /opt/idssys/ta-proxmenu/defaults.inc source /opt/idssys/ta-proxmenu/defaults.inc
# An older run.sh may update main on disk while continuing to execute its
# already-loaded code. Hand V2 to the new launcher loaded from disk.
if [[ "${1:-}" == "V2" ]]; then
exec /opt/idssys/ta-proxmenu/run.sh V2
fi
INSTALL_PULSE() { INSTALL_PULSE() {
echo echo
bash <(curl -fsSL https://github.com/rcourtman/Pulse/releases/latest/download/install.sh) bash <(curl -fsSL https://github.com/rcourtman/Pulse/releases/latest/download/install.sh)
@@ -419,4 +425,3 @@ exit 0
+3 -3
View File
@@ -22,8 +22,7 @@ SWITCH_TO_V2() {
return 1 return 1
fi fi
if [[ "$current_branch" == "V2" ]]; then if [[ "$current_branch" == "V2" ]]; then
echo -e "${idsCL[Green]}TA-ProxMenu is already using 'V2'.${idsCL[Default]}" exec /opt/idssys/ta-proxmenu/run.sh
return 0
fi fi
if [[ -n "$(git -C "$repository" status --porcelain --untracked-files=normal)" ]]; then 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]}" 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 fi
rm -f /var/cache/ta-proxmenu/update-status 2>/dev/null || true 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 if [[ "${1:-}" == "V2" ]]; then