Skip to content

Commit

Permalink
Merge pull request #387 from terencehonles/remove-cli-entrypoint-path…
Browse files Browse the repository at this point in the history
…-argument-to-load-plugins

remove --path argument so plugins are loaded
  • Loading branch information
tianon authored Sep 4, 2020
2 parents b112774 + c0d11ed commit 598769a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 24 deletions.
8 changes: 2 additions & 6 deletions cli-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
set -euo pipefail

# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
set -- wp "$@"
fi

# if our command is a valid wp-cli subcommand, let's invoke it through wp-cli instead
# or if our command is a valid wp-cli subcommand, let's invoke it through wp-cli instead
# (this allows for "docker run wordpress:cli help", etc)
if wp --path=/dev/null help "$1" > /dev/null 2>&1; then
if [ "${1#-}" != "$1" ] || wp help "$1" > /dev/null 2>&1; then
set -- wp "$@"
fi

Expand Down
8 changes: 2 additions & 6 deletions php7.2/cli/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
set -euo pipefail

# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
set -- wp "$@"
fi

# if our command is a valid wp-cli subcommand, let's invoke it through wp-cli instead
# or if our command is a valid wp-cli subcommand, let's invoke it through wp-cli instead
# (this allows for "docker run wordpress:cli help", etc)
if wp --path=/dev/null help "$1" > /dev/null 2>&1; then
if [ "${1#-}" != "$1" ] || wp help "$1" > /dev/null 2>&1; then
set -- wp "$@"
fi

Expand Down
8 changes: 2 additions & 6 deletions php7.3/cli/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
set -euo pipefail

# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
set -- wp "$@"
fi

# if our command is a valid wp-cli subcommand, let's invoke it through wp-cli instead
# or if our command is a valid wp-cli subcommand, let's invoke it through wp-cli instead
# (this allows for "docker run wordpress:cli help", etc)
if wp --path=/dev/null help "$1" > /dev/null 2>&1; then
if [ "${1#-}" != "$1" ] || wp help "$1" > /dev/null 2>&1; then
set -- wp "$@"
fi

Expand Down
8 changes: 2 additions & 6 deletions php7.4/cli/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
set -euo pipefail

# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
set -- wp "$@"
fi

# if our command is a valid wp-cli subcommand, let's invoke it through wp-cli instead
# or if our command is a valid wp-cli subcommand, let's invoke it through wp-cli instead
# (this allows for "docker run wordpress:cli help", etc)
if wp --path=/dev/null help "$1" > /dev/null 2>&1; then
if [ "${1#-}" != "$1" ] || wp help "$1" > /dev/null 2>&1; then
set -- wp "$@"
fi

Expand Down

0 comments on commit 598769a

Please sign in to comment.