Skip to content

Conversation

tarrenj
Copy link
Contributor

@tarrenj tarrenj commented Aug 9, 2018

Remove depreciated -a file operator in favor of -e.

@@ -40,7 +40,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
group="$(id -g)"
fi

if ! [ -e index.php -a -e wp-includes/version.php ]; then
if ! [ -e index.php -e wp-includes/version.php ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't quite right:

$ [ -e xyz -e abc ]
-bash: [: too many arguments

What this needs to be updated to instead is something like:

	if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved. Thanks for the review.

Signed-off-by: Jake Tarren <jake@zensystem.io>
@tianon tianon merged commit ba478b0 into docker-library:master Aug 10, 2018
@tianon
Copy link
Member

tianon commented Aug 10, 2018

Thanks!

tianon added a commit to infosiftr/stackbrew that referenced this pull request Aug 14, 2018
- `docker`: 18.06.1-ce-rc1
- `ghost`: 1.25.5
- `golang`: 1.11rc1
- `memcached`: 1.5.10
- `mysql`: expose `mysqlx` port (docker-library/mysql#466)
- `openjdk`: 8u181 (Debian)
- `postgres`: `11~beta3-1.pgdg90+2`
- `rocket.chat`: 0.68.4
- `wordpress`: docker-library/wordpress#324
tianon added a commit to infosiftr/stackbrew that referenced this pull request Aug 14, 2018
- `docker`: 18.06.1-ce-rc1
- `ghost`: 1.25.5
- `memcached`: 1.5.10
- `mysql`: expose `mysqlx` port (docker-library/mysql#466)
- `openjdk`: 8u181 (Debian)
- `postgres`: `11~beta3-1.pgdg90+2`
- `rocket.chat`: 0.68.4
- `wordpress`: docker-library/wordpress#324
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants