fix exit statement in cli scripts
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -28,5 +28,5 @@ try {
|
|||||||
\Froxlor\Cli\ConfigServicesCmd::processParameters($argc, $argv);
|
\Froxlor\Cli\ConfigServicesCmd::processParameters($argc, $argv);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
\Froxlor\Cli\ConfigServicesCmd::printerr($e->getMessage());
|
\Froxlor\Cli\ConfigServicesCmd::printerr($e->getMessage());
|
||||||
exit 1;
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,5 +28,5 @@ try {
|
|||||||
\Froxlor\Cli\SwitchServerIpCmd::processParameters($argc, $argv);
|
\Froxlor\Cli\SwitchServerIpCmd::processParameters($argc, $argv);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
\Froxlor\Cli\SwitchServerIpCmd::printerr($e->getMessage());
|
\Froxlor\Cli\SwitchServerIpCmd::printerr($e->getMessage());
|
||||||
exit 1;
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,4 +28,5 @@ try {
|
|||||||
\Froxlor\Cli\PhpSessioncleanCmd::processParameters($argc, $argv);
|
\Froxlor\Cli\PhpSessioncleanCmd::processParameters($argc, $argv);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
\Froxlor\Cli\PhpSessioncleanCmd::printerr($e->getMessage());
|
\Froxlor\Cli\PhpSessioncleanCmd::printerr($e->getMessage());
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user