simplify test_fail.sh

the default `exit` value is 0 so we do not need to explicitly call it
This commit is contained in:
fkobi
2025-01-09 10:18:24 +00:00
committed by Howard Hinnant
parent 632af88e80
commit 8a1102fd08

View File

@ -1,9 +1,6 @@
#!/bin/sh
# show what is to be run
echo $1
eval $1
if [ $? -eq 0 ]; then
exit 0;
fi
exit 1;
# run the command
eval $1 || exit 1 # if fails, return 1