[Xorp-cvs] XORP cvs commit: xorp/policy/test
Pavlin Radoslavov
pavlin@icir.org
Wed, 26 Apr 2006 03:26:29 GMT
CVSROOT: /usr/local/share/doc/apache/cvs
Module name: xorp
Changes by: pavlin@xorpc.icir.org 2006-04-26 03:26:29 UTC
XORP CVS repository
Modified files:
policy/test test_policy.sh
Log message:
Use a (more) portable mechanism to check the return status of an
executed command.
On Solaris-10.0 (i386) the following mechanism doesn't work:
if ! ./foo
then
...
The above mechanism is replaced with:
./foo
if [ $? -ne 0 ] ; then
...
Revision Changes Path
1.3 +3 -3; commitid: 4b9a444ee7e47ea6; xorp/policy/test/test_policy.sh