From a15243a78c996515987f0437a75b0db2efb79a16 Mon Sep 17 00:00:00 2001 From: Sebastian Estrella <2049686+sestrella@users.noreply.github.com> Date: Wed, 3 Jul 2024 22:51:03 -0500 Subject: [PATCH] Address linter and formatter warnings --- .github/workflows/build.yml | 4 ++-- lib/utils.bash | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b95b269..9d3978b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,10 +29,10 @@ jobs: version: latest command: ghc --version - plugin: hls - version: 1.6.1.0 + version: latest command: haskell-language-server-wrapper --version - plugin: hls - version: latest + version: 1.6.1.0 command: haskell-language-server-wrapper --version - plugin: stack version: latest diff --git a/lib/utils.bash b/lib/utils.bash index 0094b63..83c1d97 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -32,6 +32,7 @@ install_version() { local version="$2" local path="$3" + # shellcheck disable=SC2155 local version_prefix=$(echo "$version" | awk -F. '{print $1 "." $2}') if [[ $tool == "ghc" ]] || { [[ $tool == "hls" ]] && [[ $(echo "$version_prefix >= 1.7" | bc) -eq 1 ]]; }; then