From 2514d9e2fecb03d7e2c8cbf1ed1709efb0988615 Mon Sep 17 00:00:00 2001 From: Jared Lunde Date: Sun, 29 Sep 2024 12:16:35 -0700 Subject: [PATCH] lint --- lib/utils.bash | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/utils.bash b/lib/utils.bash index 5ab90e2..13d5ca7 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -40,35 +40,35 @@ download_release() { case $platform in 'Darwin x86_64') - target=darwin-x86_64 - ;; + target=darwin-x86_64 + ;; 'Darwin arm64') - target=darwin-arm64 - ;; + target=darwin-arm64 + ;; 'Linux aarch64' | 'Linux arm64') - target=linux-arm64 - ;; + target=linux-arm64 + ;; 'MINGW64'*) - target=windows-x86_64 - ;; + target=windows-x86_64 + ;; 'Linux x86_64' | *) - target=linux-x86_64 - ;; + target=linux-x86_64 + ;; esac if [[ $target = darwin-x86_64 ]]; then - # Is this process running in Rosetta? - # redirect stderr to devnull to avoid error message when not running in Rosetta - if [[ $(sysctl -n sysctl.proc_translated 2>/dev/null) = 1 ]]; then - target=darwin-arm64 - fi + # Is this process running in Rosetta? + # redirect stderr to devnull to avoid error message when not running in Rosetta + if [[ $(sysctl -n sysctl.proc_translated 2>/dev/null) = 1 ]]; then + target=darwin-arm64 + fi fi exe_name=envtpl ext_name=.tar.gz if [[ $target = windows-x86_64 ]]; then - exe_name=$exe_name.exe - ext_name=.zip + exe_name=$exe_name.exe + ext_name=.zip fi url="$GH_REPO/releases/download/v$version/envtpl-$target$ext_name"