Fixed return status on run_command
This commit is contained in:
parent
df5eb4b589
commit
91ade76192
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user