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.
This commit is contained in:
parent
1a80385a48
commit
735647bdf7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user