You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eagle.apache.org by ha...@apache.org on 2015/12/03 06:08:03 UTC

[2/4] incubator-eagle git commit: [EAGLE-65] fix eagle-docker.sh

[EAGLE-65] fix eagle-docker.sh


Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/31890530
Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/31890530
Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/31890530

Branch: refs/heads/master
Commit: 31890530bb00ef38284b9df0d4838ffa3eb2c356
Parents: 66c3ef5
Author: qinzhaokun <qi...@gmail.com>
Authored: Wed Dec 2 19:27:35 2015 -0700
Committer: qinzhaokun <qi...@gmail.com>
Committed: Wed Dec 2 19:27:35 2015 -0700

----------------------------------------------------------------------
 eagle-external/eagle-docker/bin/eagle-docker.sh | 94 ++++++++++----------
 1 file changed, 48 insertions(+), 46 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/31890530/eagle-external/eagle-docker/bin/eagle-docker.sh
----------------------------------------------------------------------
diff --git a/eagle-external/eagle-docker/bin/eagle-docker.sh b/eagle-external/eagle-docker/bin/eagle-docker.sh
index 781d8dc..d490d21 100755
--- a/eagle-external/eagle-docker/bin/eagle-docker.sh
+++ b/eagle-external/eagle-docker/bin/eagle-docker.sh
@@ -248,50 +248,52 @@ function exec_bash(){
 	docker exec -it $EAGLE_DOCKER_PREFIX bash
 }
 
-case $1 in
-"--node")
-	if [ $# -lt 2 ]; then
-        usage
-        exit 1
-     fi
-	 NODE_NUM=$2
-     shift 2
-     ;;
-"deploy")
-        deploy 
-	exit
-	;;
-"build")
-        build	
-	exit
-	;;
-"boot")
-        boot	
-	exit
-	;;
-"status")
-        status 
-	exit
-	;;
-"start")
- 	start	
-	exit
-	;;
-"stop")
- 	stop	
-	exit
-	;;
-"clean")	
-	clean	
-	exit
-	;;
-"shell")	
-	exec_bash
-	exit
-	;;
-*)
-	usage
-	exit 1
+while [[ -n $1 ]]; do
+	case $1 in
+	"--node")
+		if [ $# -lt 2 ]; then
+        	usage
+        	exit 1
+     		fi
+	 	NODE_NUM=$2
+     		shift
+     		;;
+	"deploy")
+        	deploy 
+		exit
+		;;
+	"build")
+        	build	
+		exit
+		;;
+	"boot")
+        	boot	
+		exit
+		;;
+	"status")
+        	status 
+		exit
+		;;
+	"start")
+ 		start	
+		exit
+		;;
+	"stop")
+ 		stop	
+		exit
+		;;
+	"clean")	
+		clean	
+		exit
+		;;
+	"shell")	
+		exec_bash
+		exit
+		;;
+	*)
+		usage
+		exit 1
 	;;
-esac
-
+	esac
+	shift
+done