From ac5a33b0715dad238a616ab67b7e935e84ddbb85 Mon Sep 17 00:00:00 2001 From: Junho Hwang <72647031+juno-junho@users.noreply.github.com> Date: Wed, 17 Apr 2024 23:53:11 -0700 Subject: [PATCH] Update switch.sh --- scripts/switch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/switch.sh b/scripts/switch.sh index a8c098c0..6c7b3c27 100644 --- a/scripts/switch.sh +++ b/scripts/switch.sh @@ -4,10 +4,10 @@ PROFILE_BLUE=$(curl -s http://127.0.0.1:8081/api/profile) PROFILE_GREEN=$(curl -s http://127.0.0.1:8082/api/profile) # blue가 사용중이면 green이 쉬고 있고, 반대면 blue가 쉬고 있음 -if [ $PROFILE_BLUE == blue ] +if [ $PROFILE_BLUE == "blue" ] then IDLE_PORT=8081 -elif [ $PROFILE_GREEN == green ] +elif [ $PROFILE_GREEN == "green" ] then IDLE_PORT=8082 else