Skip to content

Commit

Permalink
fix: updated grep keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
thguss committed Oct 18, 2024
1 parent 6c89152 commit ba2eae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ TAG="latest"
CONTAINER_NAME="smeem"
HEALTH_CHECK_URI="/actuator/health"

docker_ps_output=$(sudo docker ps | grep $CONTAINER_NAME)
docker_ps_output=$(sudo docker ps | grep "$CONTAINER_NAME-")
running_container_name=$(echo "$docker_ps_output" | awk '{print $NF}')
blue_port=$(echo "$running_container_name" | awk -F'-' '{print $NF}')

Expand Down

0 comments on commit ba2eae9

Please sign in to comment.