Browse Source

Change special * module to 'all' because of bash expansions

pull/116/head
Starbeamrainbowlabs 5 years ago
parent
commit
9272938530
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      build.sh
  2. +2
    -2
      pack.php

+ 1
- 1
build.sh View File

@ -1,2 +1,2 @@
#!/usr/bin/env bash
php build.php
php build.php $*

+ 2
- 2
pack.php View File

@ -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…
Cancel
Save