mirror of
https://github.com/HowardHinnant/date.git
synced 2025-06-25 01:01:33 +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
|
||||
|
||||
# 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
|
||||
|
Reference in New Issue
Block a user