sh-elf-binutils/util.sh

12 lines
195 B
Bash
Raw Normal View History

2021-01-01 23:22:19 +01:00
TAG="<sh-elf-binutils>"
run_quietly() {
out="$1"
shift 1
"$@" >$out 2>&1
if [[ "$?" != 0 ]]; then
echo "$tag error: build failed, please check $(pwd)/$out o(x_x)o"
exit 1
fi
}