Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sarg3nt committed May 23, 2024
1 parent 2e2b801 commit ec5e822
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ get_arch() {

if [[ ${machine} == "arm64" ]] || [[ ${machine} == "aarch64" ]]; then
echo "arm64"
elif [[ ${machine} == "arm" ]] ; then
elif [[ ${machine} == "arm" ]]; then
echo "armv7"
elif [[ ${machine} == *"armv"* ]] || [[ ${machine} == *"aarch"* ]]; then
echo "arm"
Expand All @@ -63,17 +63,17 @@ get_arch() {
get_download_name() {
local -r platform="$(get_platform)"
local -r arch="$(get_arch)"
if [[ ${platform} == "linux" ]] && [[ ${arch} == "x86_64" ]]; then
if [[ ${platform} == "linux" ]] && [[ ${arch} == "x86_64" ]]; then
echo "tealdeer-linux-x86_64-musl"
elif [[ ${platform} == "macos" ]] && [[ ${arch} == "x86_64" ]]; then
elif [[ ${platform} == "macos" ]] && [[ ${arch} == "x86_64" ]]; then
echo "tealdeer-macos-x86_64"
elif [[ ${platform} == "linux" ]] && [[ ${arch} == "arm" ]]; then
elif [[ ${platform} == "linux" ]] && [[ ${arch} == "arm" ]]; then
echo "tealdeer-linux-arm-musleabihf"
elif [[ ${platform} == "linux" ]] && [[ ${arch} == "armv7" ]]; then
elif [[ ${platform} == "linux" ]] && [[ ${arch} == "armv7" ]]; then
echo "tealdeer-linux-armv7-musleabihf"
elif [[ ${platform} == "windows" ]] && [[ ${arch} == "x86_64" ]]; then
elif [[ ${platform} == "windows" ]] && [[ ${arch} == "x86_64" ]]; then
echo "tealdeer-windows-x86_64-msvc.exe"
else
else
fail "Unknown or unsupported platform ${platform}-${arch} detected."
fi
}
Expand Down

0 comments on commit ec5e822

Please sign in to comment.