Skip to content

Commit 66af639

Browse files
Fixes Linux setup. Closes #808 (#809)
1 parent 4d802c1 commit 66af639

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/setup-beta.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ full_path=$(pwd)
4343

4444
set -e # Terminates program immediately if any command below exits with a non-zero exit status
4545

46-
if [ -z "$0" ]
46+
if [ $# -eq 0 ]
4747
then
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"
5151
else
52-
version=$0
52+
version=$1
5353
fi
5454

5555
echo "Downloading Dev Proxy $version..."

scripts/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ full_path=$(pwd)
4242

4343
set -e # Terminates program immediately if any command below exits with a non-zero exit status
4444

45-
if [ -z "$0" ]
45+
if [ $# -eq 0 ]
4646
then
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"
5050
else
51-
version=$0
51+
version=$1
5252
fi
5353

5454
echo "Downloading Dev Proxy $version..."

0 commit comments

Comments
 (0)