Skip attempt at JAR classpath scan if JAR missing.

Signed-off-by: Eric Newton <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/311407e2
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/311407e2
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/311407e2

Branch: refs/heads/master
Commit: 311407e268a197219490aa3d7d9cc0b95dffdde6
Parents: ccc46b0
Author: Bill Havanki <[email protected]>
Authored: Tue Sep 24 11:59:35 2013 -0400
Committer: Eric Newton <[email protected]>
Committed: Tue Sep 24 12:13:52 2013 -0400

----------------------------------------------------------------------
 bin/accumulo | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/311407e2/bin/accumulo
----------------------------------------------------------------------
diff --git a/bin/accumulo b/bin/accumulo
index 8e1128a..37b9a43 100755
--- a/bin/accumulo
+++ b/bin/accumulo
@@ -67,7 +67,7 @@ if [ "$1" = "-add" ] ; then
 else
     export ACCUMULO_XTRAJARS=""
 fi
-if [ "$1" = "jar" ] ; then
+if [ "$1" = "jar" -a -f "$2" ] ; then
     if [[ $2 =~ ^/ ]]; then
       jardir="$(dirname "$2")"
       jarfile="$2"

Reply via email to