lean2/src/cmake/check_failure.sh

8 lines
147 B
Bash
Raw Normal View History

#!/bin/bash
# Auxiliary script that succeeds iff if the execution of input
# arguments fail.
if $*; then
echo "unexpected success"
exit 1
fi