From 1ee3a09e687ee0bee55f5a246c86346d2b22745f Mon Sep 17 00:00:00 2001
From: brinn <brinn>
Date: Thu, 11 Oct 2007 14:25:09 +0000
Subject: [PATCH] change: make datamover.sh more error tolerant by ignoring a
 prefix "--" to any command

SVN: 2130
---
 datamover/dist/datamover.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/datamover/dist/datamover.sh b/datamover/dist/datamover.sh
index ea22a18becb..6faa1deca22 100755
--- a/datamover/dist/datamover.sh
+++ b/datamover/dist/datamover.sh
@@ -71,7 +71,10 @@ else
 	JAVA_BIN="java"
 fi
 
-case "$1" in
+command=$1
+# ensure that we ignore a possible prefix "--" for any command 
+command="${command#--*}"
+case "$command" in
         start)
 	        echo -n "Starting Datamover "
 
-- 
GitLab