Skip to content

Commit 6d5fc82

Browse files
author
Issac Trotts
committed
Fix arg checking and usage.
1 parent 1253d4b commit 6d5fc82

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

appengine/standard/wordpress/gen-wp-config

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ function die() {
99
exit 1
1010
}
1111

12-
if [[ -z "$db_instance" || -z "$db_name" || -z "$db_pass" ]]; then
12+
if [[ "$#" != "3" ]]; then
1313
die "Usage: $0 [DB_INSTANCE] [DB_NAME] [DB_PASS]
1414
1515
This script prints to stdout the contents wp-config.php needs to work on php72.
1616
17-
DB_TIER is the tier of the Cloud SQL instance.
18-
1917
DB_INSTANCE is the name of the MySQL instance to create.
2018
2119
DB_NAME is the name of the database to create within the MySQL instance.

0 commit comments

Comments
 (0)