From 4e8aa6245b43cc3ed3afbf19ad60dc37183ed0f4 Mon Sep 17 00:00:00 2001 From: Jim Lawson Date: Tue, 21 Jul 2015 11:01:15 -0700 Subject: Check for errors. --- bin/fir2flo.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/fir2flo.sh') diff --git a/bin/fir2flo.sh b/bin/fir2flo.sh index 481f4418..3d425a4a 100755 --- a/bin/fir2flo.sh +++ b/bin/fir2flo.sh @@ -1,4 +1,6 @@ #!/bin/bash $CHISEL_BIN/firrtl -i $1.fir -o $1.flo -X flo # -x X # -p c # tkwTgc -$CHISEL_BIN/filter < $1.flo > tmp; mv tmp $1.flo +if [ $? ] ; then + $CHISEL_BIN/filter < $1.flo > tmp && mv tmp $1.flo +fi -- cgit v1.2.3