From ae185ceb02c0a90e3e1311735028bdaf56b5a7b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= Date: Tue, 20 Sep 2022 15:22:22 +0000 Subject: [PATCH] Don't clear the screen when erroring out The shutdown() function clears the screen which makes it very hard to debug what is wrong. Thus exiting with exit(1) which is also used in other error conditions. --- h-m-m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/h-m-m b/h-m-m index 7d6b951..e00f079 100755 --- a/h-m-m +++ b/h-m-m @@ -223,7 +223,7 @@ function check_the_available_clipboard_tool(&$mm) if (trim($tool)==='') { echo "Can't find your clipboard tool! I expected to find xclip, xsel, or wl-clipboard.\n"; - shutdown(); + exit(1); } switch ($tool) @@ -245,7 +245,7 @@ function check_the_available_clipboard_tool(&$mm) default: echo "I can't find your clipboard tool!\n"; - shutdown(); + exit(1); } }