Rename http-user and http-password to url-user and url-password 48/177548/2
authorjunghyuk.park <junghyuk.park@samsung.com>
Wed, 2 May 2018 01:13:54 +0000 (10:13 +0900)
committerjunghyuk.park <junghyuk.park@samsung.com>
Wed, 2 May 2018 01:24:08 +0000 (10:24 +0900)
Change-Id: Ifcd20dd1678fd7333e776833c6e05cd73ee3cd0b

install.sh

index 83199c6..610d6d3 100755 (executable)
@@ -16,6 +16,8 @@ usage()
     echo "--url       - You can specify the specific url of packages archive"
     echo "              like http://165.213.149.200/download/public_mirror/tizen/base/tizen-base_20170520.1/repos/arm/packages/"
     echo "              Default is a latest repository."
+    echo "--url-user      - Specify user for url"
+    echo "--url-password  - Specify password for url"
     echo "--prefix-dir  - You can specify the prefix directory for performing the unittest"
     echo "                like /opt/usr/coreclr-tc"
     echo "                Default is '/opt/usr/coreclr-tc'."
@@ -27,8 +29,6 @@ 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
 }
 
@@ -98,11 +98,11 @@ do
         --tc-url=*)
             tcurl=${i#*=}
             ;;
-        --http-user=*)
-            httpuser=${i#*=}
+        --url-user=*)
+            urluser=${i#*=}
             ;;
-        --http-password=*)
-            httppassword=${i#*=}
+        --url-password=*)
+            urlpassword=${i#*=}
             ;;
         *)
             usage
@@ -125,12 +125,12 @@ if [[ ${devicetype} != "mobile" ]] && [[ ${devicetype} != "tv" ]]; then
        exit 1
 fi
 
-if [[ $httpuser != "" ]]; then
-       user=$httpuser
+if [[ $urluser != "" ]]; then
+       user=$urluser
 fi
 
-if [[ $httppassword != "" ]]; then
-       password=$httppassword
+if [[ $urlpassword != "" ]]; then
+       password=$urlpassword
 fi
 
 str=$( sdb ${opt} shell "uname -a" )