sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject git commit: SQOOP-775 Addtowar.sh script is silently ignoring unknown arguments (Jarek Jarcec Cecho)
Date Mon, 17 Dec 2012 20:29:09 GMT
Updated Branches:
  refs/heads/sqoop2 649178222 -> 32c420678


SQOOP-775 Addtowar.sh script is silently ignoring unknown arguments
(Jarek Jarcec Cecho)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/32c42067
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/32c42067
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/32c42067

Branch: refs/heads/sqoop2
Commit: 32c420678f4b2c944d11f8b89ce2fdc1947e9816
Parents: 6491782
Author: Bilung Lee <blee@apache.org>
Authored: Mon Dec 17 11:48:57 2012 -0800
Committer: Bilung Lee <blee@apache.org>
Committed: Mon Dec 17 12:28:54 2012 -0800

----------------------------------------------------------------------
 dist/src/main/bin/addtowar.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/32c42067/dist/src/main/bin/addtowar.sh
----------------------------------------------------------------------
diff --git a/dist/src/main/bin/addtowar.sh b/dist/src/main/bin/addtowar.sh
index 27916ee..fd41608 100644
--- a/dist/src/main/bin/addtowar.sh
+++ b/dist/src/main/bin/addtowar.sh
@@ -231,6 +231,12 @@ do
       exit -1
     fi
     warPath=$1
+  else
+    echo
+    echo "Unknown argument: $1"
+    echo
+    printUsage
+    exit -1
   fi
 
   shift


Mime
View raw message