maintenance: Add file extension as expected for PHP scripts
The example in the block comment above uses the .php file extension in the example but the usage string omits it and it can be misleading. If the extension (.php) is not given, `runScript.php` will think that the script doesn't exist and trigger a different code path rather than actually run the script in question. Change-Id: I4d60f65629472f2243ead2c8768f597ae23b6beb
This commit is contained in:
parent
beb5aa641b
commit
fd02dc6aac
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ require_once "$IP/maintenance/Maintenance.php";
|
|||
|
||||
if ( !isset( $argv[1] ) ) {
|
||||
fwrite( STDERR, "This script requires a maintenance script as an argument.\n"
|
||||
. "Usage: runScript.php extensions/Wikibase/lib/maintenance/dispatchChanges\n" );
|
||||
. "Usage: php runScript.php extensions/Wikibase/lib/maintenance/dispatchChanges.php\n" );
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue