fix cleanup

This commit is contained in:
John
2021-11-13 18:57:22 +01:00
parent 598c45dddd
commit 7ff17b6155
+5 -5
View File
@@ -425,14 +425,14 @@ if [ "x$verify" != 'xaddress 04: slave #25, scanned "MF=153;ID=BBBBB;SW=3031;HW=
cat "$PWD/ebusd.log"
exit 1
fi
sleep 2
echo `date` "ebusd log:"
cat "$PWD/ebusd.log"
echo `date` "done."
if [[ -n "$1" ]]; then
if [[ -z "$1" ]]; then
kill $pid
else
kill -9 $pid
fi
sleep 2
echo `date` "ebusd log:"
cat "$PWD/ebusd.log"
echo `date` "done."
wait $srvpid
exit $failed