Browse Source

fix(musare.sh): attach with podman-compose was broken

Kristian Vos 1 year ago
parent
commit
3de2743964
1 changed files with 1 additions and 1 deletions
  1. 1 1
      musare.sh

+ 1 - 1
musare.sh

@@ -120,7 +120,7 @@ getContainerId()
     if [[ ${DOCKER_COMMAND} == "docker" ]]; then
         containerId=$(${dockerCompose} ps -q "${1}")
     else
-        containerId=$(${dockerCompose} ps | awk "/${1}/ {print \$1}")
+        containerId=$(${dockerCompose} ps | sed '0,/CONTAINER/d' | awk "/${1}/ {print \$1;exit}")
     fi
     echo "${containerId}"
 }