mirror of
https://github.com/HowardHinnant/date.git
synced 2025-07-29 18:27:14 +02:00
simplify test_fail.sh
the default `exit` value is 0 so we do not need to explicitly call it
This commit is contained in:
@ -1,9 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# show what is to be run
|
||||||
echo $1
|
echo $1
|
||||||
eval $1
|
# run the command
|
||||||
|
eval $1 || exit 1 # if fails, return 1
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
exit 0;
|
|
||||||
fi
|
|
||||||
exit 1;
|
|
||||||
|
Reference in New Issue
Block a user