fix typos 04/149304/1
authorJeonghoon Park <jh1979.park@samsung.com>
Tue, 12 Sep 2017 05:26:00 +0000 (14:26 +0900)
committerJeonghoon Park <jh1979.park@samsung.com>
Tue, 12 Sep 2017 05:26:00 +0000 (14:26 +0900)
Change-Id: I01421d939290a2d0acd43e6cafa296e318c536b4

tool/install_with_conf.sh

index 2d94936..a560e39 100755 (executable)
@@ -41,16 +41,16 @@ sdb push $2 /tmp
 sdb shell "rpm -ivh --force /tmp/$filename"
 
 if [ -z "$3" ];  then
-       sdb shell "sed -i -e 's/\(path=\).*/\1"${3//\//\\/}"/' ${conf_file}"
-else
        echo "No argument for Device ID"
+else
+       sdb shell "sed -i -e 's/\(path=\).*/\1"${3//\//\\/}"/' ${conf_file}"
 fi
 
 
 if [ -z "$4" ];  then
-       sdb shell "sed -i -e 's/\(address=\).*/\1"${4//\//\\/}"/' ${conf_file}"
-else
        echo "No argument for Web API URL"
+else
+       sdb shell "sed -i -e 's/\(address=\).*/\1"${4//\//\\/}"/' ${conf_file}"
 fi
 
 sdb shell pkg_initdb --ro