mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-28 01:22:44 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user