Fix teststrings.sh to exit != 0 if an error occured.

Monotone-Parent: c80984a4695d7e15164ed59ed14c2b823311be38
Monotone-Revision: 986c53393f0caccafae8ec72f8b2d56477f587b6

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2011-05-20T19:46:13
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Jean Raby
2011-05-20 19:46:13 +00:00
parent b86de24ecf
commit a134cbe2cb

View File

@@ -1,6 +1,7 @@
#!/bin/sh
#!/bin/bash
TOPDIR=../..
RC=0
if [ ! -f teststrings ]
then
@@ -15,6 +16,9 @@ do
then
echo "$stringfile: passed";
else
echo "$stringfile: failed (code: $code)";
echo "$stringfile: FAILED (code: $code)";
RC=$(($RC+$code))
fi
done
exit $RC