mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Change special * module to 'all' because of bash expansions
This commit is contained in:
parent
4a8f0d608a
commit
9272938530
2 changed files with 3 additions and 3 deletions
2
build.sh
2
build.sh
|
@ -1,2 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
php build.php
|
||||
php build.php $*
|
||||
|
|
4
pack.php
4
pack.php
|
@ -10,10 +10,10 @@ $module_index = json_decode(file_get_contents("module_index.json"));
|
|||
$module_list = [];
|
||||
foreach($module_index as $module)
|
||||
{
|
||||
// If the module is optional, the module's id isn't present in the command line arguments, and the special '*' module id wasn't passed in, skip it
|
||||
// If the module is optional, the module's id isn't present in the command line arguments, and the special 'all' module id wasn't passed in, skip it
|
||||
if($module->optional &&
|
||||
strrpos(implode(" ", $argv), $module->id) === false &&
|
||||
!in_array("*", $argv)) continue;
|
||||
!in_array("all", $argv)) continue;
|
||||
$module_list[] = $module->id;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue