Skip to content

Commit

Permalink
move need tar for when it is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
CramBL committed Jul 1, 2024
1 parent 71bb87f commit dad894b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions www/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ command -v curl > /dev/null 2>&1 ||

need mkdir
need mktemp
need tar

if [ -z "${tag-}" ]; then
need grep
Expand Down Expand Up @@ -157,8 +156,8 @@ if [ -z "${target-}" ]; then
fi

case $target in
x86_64-pc-windows-msvc) extension=zip; need unzip;;
*) extension=tar.gz;;
x86_64-pc-windows-msvc) extension=zip; need unzip;;
*) extension=tar.gz need tar;;
esac

archive="$releases/download/$tag/$crate-$tag-$target.$extension"
Expand Down

0 comments on commit dad894b

Please sign in to comment.