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.
This commit is contained in:
Michael Große 2022-09-20 15:22:22 +00:00
parent 4f06418b89
commit ae185ceb02

4
h-m-m
View file

@ -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);
}
}