Fixed return status on run_command

This commit is contained in:
root 2024-11-25 15:52:15 +00:00
parent df5eb4b589
commit 91ade76192

View File

@ -11,7 +11,11 @@ failts() {
}
run_command() {
$1 &> /dev/null
[[ $? -ne 0 ]] && echo "* FAILED - Couldn't run \"$1\"" >&2
if [[ $? -ne 0 ]]; then
echo "* FAILED - Couldn't run \"$1\"" >&2
else
return 0
fi
}
fail() {
echo -ne "FAILED\n\n$1\n\n"