cmdlineTests.sh: Add fail helper to make exiting on an error more convenient

This commit is contained in:
Kamil Śliwak
2021-10-04 14:30:30 +02:00
parent ce61a2bf28
commit 26f9a554fb
2 changed files with 13 additions and 12 deletions
+6
View File
@@ -33,6 +33,12 @@ else
function printLog() { echo "$(tput setaf 3)$1$(tput sgr0)"; }
fi
function fail()
{
printError "$@"
return 1
}
safe_kill()
{
local PID=${1}