Browse Source

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 years ago
parent
commit
735647bdf7
1 changed files with 1 additions and 1 deletions
  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