From 11533c2d7528586af4468ecade74f74a6368d36e Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sat, 2 Apr 2022 18:07:36 +0200 Subject: [PATCH] fix exit statement in cli scripts Signed-off-by: Michael Kaufmann --- install/scripts/config-services.php | 2 +- install/scripts/switch-server-ip.php | 2 +- scripts/php-sessionclean.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/install/scripts/config-services.php b/install/scripts/config-services.php index 1db14065..9ba08d08 100755 --- a/install/scripts/config-services.php +++ b/install/scripts/config-services.php @@ -28,5 +28,5 @@ try { \Froxlor\Cli\ConfigServicesCmd::processParameters($argc, $argv); } catch (Exception $e) { \Froxlor\Cli\ConfigServicesCmd::printerr($e->getMessage()); - exit 1; + exit(1); } diff --git a/install/scripts/switch-server-ip.php b/install/scripts/switch-server-ip.php index e1032687..b76e5b3c 100755 --- a/install/scripts/switch-server-ip.php +++ b/install/scripts/switch-server-ip.php @@ -28,5 +28,5 @@ try { \Froxlor\Cli\SwitchServerIpCmd::processParameters($argc, $argv); } catch (Exception $e) { \Froxlor\Cli\SwitchServerIpCmd::printerr($e->getMessage()); - exit 1; + exit(1); } diff --git a/scripts/php-sessionclean.php b/scripts/php-sessionclean.php index c97c2aed..b63100b5 100755 --- a/scripts/php-sessionclean.php +++ b/scripts/php-sessionclean.php @@ -28,4 +28,5 @@ try { \Froxlor\Cli\PhpSessioncleanCmd::processParameters($argc, $argv); } catch (Exception $e) { \Froxlor\Cli\PhpSessioncleanCmd::printerr($e->getMessage()); + exit(1); }