update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user