Skip to content

Commit

Permalink
Update haa_downloader.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
wayn3 authored Sep 11, 2020
1 parent c35df8c commit 4793125
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions haa_downloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,18 @@ files=($(curl -s "https://api.github.com/repos/RavenSystem/haa/releases/tags/3.1
echo ""
if [ -n "$1" ]; then
version="$1"
folder="$version/"
echo "Attempting to download the specified verion: $version"
download_haa
else
version=$(curl -s "https://api.github.com/repos/RavenSystem/haa/releases/latest" | grep -Po '(?<="tag_name": ")[^"]*')
echo "Attempting to download the latest version: $version"
folder="$version/"
download_haa
echo ""
echo -n "Copying latest files to: "
pwd
echo "--------------------------------------------------------"
echo ""
cp -v ./"$folder"* ./
cp -v ./"$version"/* ./
fi
echo ""
echo "Complete, exiting"
Expand Down

0 comments on commit 4793125

Please sign in to comment.