Skip to content

Commit

Permalink
Update switch.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
juno-junho authored Apr 18, 2024
1 parent 540dc39 commit ac5a33b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/switch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac5a33b

Please sign in to comment.