[Fusionforge-commits] FusionForge branch feature/reactivity updated. ddd3c87fa9e33097336ab7d1c8cf1e11ae241637
Sylvain Beucler
beuc-inria at fusionforge.org
Wed Dec 17 18:54:59 CET 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, feature/reactivity has been updated
via ddd3c87fa9e33097336ab7d1c8cf1e11ae241637 (commit)
from 438e44d599be0cd2365cef90a8bd4fb5e7382835 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ddd3c87fa9e33097336ab7d1c8cf1e11ae241637
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date: Wed Dec 17 18:54:52 2014 +0100
reactivity: work-around getopt limitation
diff --git a/src/bin/light.php b/src/bin/light.php
index ce745b6..2749132 100755
--- a/src/bin/light.php
+++ b/src/bin/light.php
@@ -79,7 +79,7 @@ function sysaction_get_script($plugin_id, $sysaction_type_id) {
$shortopts = "v"; // enable verbose mode
$longopts = array();
$options = getopt($shortopts, $longopts);
-if ($options === false) { // doesn't work, PHP returns ambiguous array() on error..
+if (count($options) != (count($argv)-1)) { // PHP just strips invalid options
print "Usage: {$argv[0]} [-v]\n";
exit(1);
}
-----------------------------------------------------------------------
Summary of changes:
src/bin/light.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
FusionForge
More information about the Fusionforge-commits
mailing list