From 9f91a50f5fd2b9d8aad07f7e93d197acd110a81e Mon Sep 17 00:00:00 2001 From: "junghyuk.park" Date: Fri, 27 Apr 2018 15:59:57 +0900 Subject: [PATCH] Add http-user and http-password options to install.sh Change-Id: Ie5e65b6625f0b6244bffe344c404a82a16f33e0f --- install.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/install.sh b/install.sh index 4757821..83199c6 100755 --- a/install.sh +++ b/install.sh @@ -27,6 +27,8 @@ usage() echo "--uselatesttc - Download a latest unittest file from http://10.113.63.27:8080/" echo " This option is off by default and use a local unittest file under tc directory." echo "--tc-url - Download a TC archive file from the specified URL" + echo "--http-user - Specify http user" + echo "--http-password - Specify http password" exit 1 } @@ -49,6 +51,8 @@ skiptcinstall=0 uselatesttc=0 testsurl="" tcurl="" +httpuser="" +httppassword="" for i in "$@" do @@ -94,6 +98,12 @@ do --tc-url=*) tcurl=${i#*=} ;; + --http-user=*) + httpuser=${i#*=} + ;; + --http-password=*) + httppassword=${i#*=} + ;; *) usage exit 1 @@ -115,6 +125,13 @@ if [[ ${devicetype} != "mobile" ]] && [[ ${devicetype} != "tv" ]]; then exit 1 fi +if [[ $httpuser != "" ]]; then + user=$httpuser +fi + +if [[ $httppassword != "" ]]; then + password=$httppassword +fi str=$( sdb ${opt} shell "uname -a" ) if [[ $str == *"x86_64"* ]]; then -- 2.7.4