File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,10 @@ function install_predixcli() {
232232 echo " Downloading latest Predix CLI: $cli_url "
233233 curl -L -O " $cli_url "
234234 mkdir -p predix-cli && tar -xf predix-cli.tar.gz -C predix-cli
235+ if [ -e predix-cli ]; then
236+ # tar -C is supposed to change directory but it doesn't sometimes
237+ cd predix-cli
238+ fi
235239 ./install
236240 fi
237241}
@@ -251,7 +255,10 @@ function update_predixcli() {
251255 echo " Downloading latest Predix CLI: $cli_url "
252256 curl -L -O " $cli_url "
253257 mkdir -p predix-cli && tar -xf predix-cli.tar.gz -C predix-cli
254- echo " Please enter your system password, so the Predix CLI can be installed using sudo."
258+ if [ -e predix-cli ]; then
259+ # tar -C is supposed to change directory but it doesn't sometimes
260+ cd predix-cli
261+ fi
255262 ./install
256263 fi
257264
Original file line number Diff line number Diff line change 11{
22 "name" : " local setup" ,
3- "version" : " 1.0.54 " ,
3+ "version" : " 1.0.56 " ,
44 "private" : true ,
55 "dependencies" : {},
66 "author" : " rishabhtulsian"
You can’t perform that action at this time.
0 commit comments