File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,13 @@ full_path=$(pwd)
4343
4444set -e # Terminates program immediately if any command below exits with a non-zero exit status
4545
46- if [ -z " $0 " ]
46+ if [ $# -eq 0 ]
4747then
4848 echo " Getting latest beta Dev Proxy version..."
4949 version=$( curl -s " https://api.github.com/repos/microsoft/dev-proxy/releases?per_page=1" | awk -F: ' /"tag_name"/ {print $2}' | sed ' s/[", ]//g' )
5050 echo " Latest beta version is $version "
5151else
52- version=$0
52+ version=$1
5353fi
5454
5555echo " Downloading Dev Proxy $version ..."
Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ full_path=$(pwd)
4242
4343set -e # Terminates program immediately if any command below exits with a non-zero exit status
4444
45- if [ -z " $0 " ]
45+ if [ $# -eq 0 ]
4646then
4747 echo " Getting latest Dev Proxy version..."
4848 version=$( curl -s https://api.github.com/repos/microsoft/dev-proxy/releases/latest | awk -F: ' /"tag_name"/ {print $2}' | sed ' s/[", ]//g' )
4949 echo " Latest version is $version "
5050else
51- version=$0
51+ version=$1
5252fi
5353
5454echo " Downloading Dev Proxy $version ..."
You can’t perform that action at this time.
0 commit comments