Skip to content

Commit

Permalink
Fixes Linux setup. Closes #808 (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
waldekmastykarz authored Jun 26, 2024
1 parent 4d802c1 commit 66af639
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/setup-beta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ full_path=$(pwd)

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

if [ -z "$0" ]
if [ $# -eq 0 ]
then
echo "Getting latest beta Dev Proxy version..."
version=$(curl -s "https://api.github.com/repos/microsoft/dev-proxy/releases?per_page=1" | awk -F: '/"tag_name"/ {print $2}' | sed 's/[", ]//g')
echo "Latest beta version is $version"
else
version=$0
version=$1
fi

echo "Downloading Dev Proxy $version..."
Expand Down
4 changes: 2 additions & 2 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ full_path=$(pwd)

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

if [ -z "$0" ]
if [ $# -eq 0 ]
then
echo "Getting latest Dev Proxy version..."
version=$(curl -s https://api.github.com/repos/microsoft/dev-proxy/releases/latest | awk -F: '/"tag_name"/ {print $2}' | sed 's/[", ]//g')
echo "Latest version is $version"
else
version=$0
version=$1
fi

echo "Downloading Dev Proxy $version..."
Expand Down

0 comments on commit 66af639

Please sign in to comment.