* correctly pass secrets to workspace-containers
* update README * helper-scripts with create symlinks helper and get composer auth github token helper
This commit is contained in:
@ -2,11 +2,15 @@
|
||||
|
||||
# NOTE: At the moment, this has only been confirmed to work with PHP 7
|
||||
|
||||
PHP_VERSION=$1 # Without dot
|
||||
PHP_VERSION=$2 # Without dot
|
||||
|
||||
# Grab full name of php-fpm container
|
||||
PHP_FPM_CONTAINER=$(docker ps | grep php${PHP_VERSION} | awk '{print $1}')
|
||||
|
||||
if [[ -z "${PHP_FPM_CONTAINER}" ]]; then
|
||||
echo "Unable to find php fpm container: php${PHP_VERSION}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Grab OS type
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
@ -81,7 +85,7 @@ xdebug_stop ()
|
||||
}
|
||||
|
||||
|
||||
case $@ in
|
||||
case $1 in
|
||||
stop|STOP)
|
||||
xdebug_stop
|
||||
;;
|
||||
@ -95,7 +99,7 @@ case $@ in
|
||||
echo "xDebug [Stop | Start | Status] in the ${PHP_FPM_CONTAINER} container."
|
||||
echo "xDebug must have already been installed."
|
||||
echo "Usage:"
|
||||
echo " .php-fpm/xdebug stop|start|status"
|
||||
echo " .php-fpm/xdebug.sh 73|74 stop|start|status"
|
||||
|
||||
esac
|
||||
|
||||
|
Reference in New Issue
Block a user