diff options
-rwxr-xr-x | test.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -35,19 +35,19 @@ dist (){ ${BIN} -x ${ARGS2} ${ARGSS} ${KEY} > DEC & PID=$! sleep 2 - cat ${FILE} | ${BIN} ${ARGS1} ${ARGSD} ${KEY} || ( echo "error !!"; exit 1 ) + cat ${FILE} | ${BIN} ${ARGS1} ${ARGSD} ${KEY} || ( echo "error !!"; kill ${PID} exit 1 ) wait ${PID} } local -echo "running diff" -diff ${FILE} DEC || echo "ERROR" +echo "running cmp" +cmp ${FILE} DEC || echo "ERROR" echo "OK." rm DEC dist -echo "running diff" -diff ${FILE} DEC || echo "ERROR" +echo "running cmp" +cmp ${FILE} DEC || echo "ERROR" echo "OK." rm DEC ${FILE} |