From dad894b27b6c40c0cffc2fd16789fa9806f83fb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Beck=20K=C3=B6nig?= Date: Mon, 1 Jul 2024 19:41:05 +0200 Subject: [PATCH] move need tar for when it is needed --- www/install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/www/install.sh b/www/install.sh index 45180c3c36..ae65c2eb92 100755 --- a/www/install.sh +++ b/www/install.sh @@ -110,7 +110,6 @@ command -v curl > /dev/null 2>&1 || need mkdir need mktemp -need tar if [ -z "${tag-}" ]; then need grep @@ -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"