fix
CureNetMulti/pipeline/head This commit looks good
Details
CureNetMulti/pipeline/head This commit looks good
Details
This commit is contained in:
parent
31d2446b03
commit
4d84f4b542
|
@ -12,13 +12,13 @@ class PutEnv {
|
||||||
$argc = sizeof($argv);
|
$argc = sizeof($argv);
|
||||||
print_r([$argc, $argv]);
|
print_r([$argc, $argv]);
|
||||||
switch($argc) {
|
switch($argc) {
|
||||||
case 3:
|
case 4:
|
||||||
$this->file = $argv[1];
|
$this->file = $argv[1];
|
||||||
$this->key = $argv[2];
|
$this->key = $argv[2];
|
||||||
$this->value -> $argv[3];
|
$this->value -> $argv[3];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 3:
|
||||||
$this->file = $argv[1];
|
$this->file = $argv[1];
|
||||||
$this->key = $argv[2];
|
$this->key = $argv[2];
|
||||||
$this->value = fgets(STDIN);
|
$this->value = fgets(STDIN);
|
||||||
|
|
Loading…
Reference in New Issue