Răsfoiți Sursa

Refine container definition

Changed to `docker ps` because this one word wraps.  `docker-compose ps` will create a newline if text is too long in a small terminal window.  Also `awk` represents tokens better than ones created with a " " delimiter.
David Leung 8 ani în urmă
părinte
comite
735647bdf7
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      xdebugPhpFpm

+ 1 - 1
xdebugPhpFpm

@@ -4,7 +4,7 @@
 
 
 # Grab full name of php-fpm container
-PHP_FPM_CONTAINER=$(docker-compose ps | grep php-fpm | cut -d " " -f 1)
+PHP_FPM_CONTAINER=$(docker ps | grep php-fpm | awk '{print $1}')
 
 
 # Grab OS type