From: Chris Hilton Date: Wed, 31 Aug 2005 15:42:17 +0000 (+0000) Subject: Adding non-zero exit status if differences were found X-Git-Tag: v0.11008~484 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ef45b16bef113d0ad742b44e3a14991b8b002838;p=dbsrgits%2FSQL-Translator.git Adding non-zero exit status if differences were found --- diff --git a/bin/sqlt-diff b/bin/sqlt-diff index d6b2e06..07fea00 100755 --- a/bin/sqlt-diff +++ b/bin/sqlt-diff @@ -2,7 +2,7 @@ # vim: set ft=perl: # ------------------------------------------------------------------- -# $Id: sqlt-diff,v 1.11 2005-08-10 16:57:06 duality72 Exp $ +# $Id: sqlt-diff,v 1.12 2005-08-31 15:42:17 duality72 Exp $ # ------------------------------------------------------------------- # Copyright (C) 2002-4 The SQLFairy Authors # @@ -97,7 +97,7 @@ use SQL::Translator; use SQL::Translator::Schema::Constants; use vars qw( $VERSION ); -$VERSION = sprintf "%d.%02d", q$Revision: 1.11 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.12 $ =~ /(\d+)\.(\d+)/; my ( @input, $list, $help, $debug ); for my $arg ( @ARGV ) { @@ -450,6 +450,7 @@ if ( @diffs ) { print join( "\n", "-- Convert schema '$s2_name' to '$s1_name':\n", @diffs, "\n" ); + exit(1); } else { print "There were no differences.\n";