mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-05-17 22:46:32 +02:00
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:
parent
4f06418b89
commit
ae185ceb02
4
h-m-m
4
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue