Skip to content

Commit 4a609a1

Browse files
author
Jesus Marquina
committed
fix: Linter fixes
1 parent ee3dc52 commit 4a609a1

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

bin/download

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -euo pipefail
55
current_script_path=${BASH_SOURCE[0]}
66
plugin_dir=$(dirname "$(dirname "$current_script_path")")
77

8-
# shellcheck source=../lib/utils.bash
8+
# shellcheck source=lib/utils.bash
99
source "${plugin_dir}/lib/utils.bash"
1010

1111
mkdir -p "$ASDF_DOWNLOAD_PATH"

bin/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -euo pipefail
55
current_script_path=${BASH_SOURCE[0]}
66
plugin_dir=$(dirname "$(dirname "$current_script_path")")
77

8-
# shellcheck source=../lib/utils.bash
8+
# shellcheck source=lib/utils.bash
99
source "${plugin_dir}/lib/utils.bash"
1010

1111
install_version "$ASDF_INSTALL_TYPE" "$ASDF_INSTALL_VERSION" "$ASDF_INSTALL_PATH"

bin/latest-stable

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -euo pipefail
55
current_script_path=${BASH_SOURCE[0]}
66
plugin_dir=$(dirname "$(dirname "$current_script_path")")
77

8-
# shellcheck source=../lib/utils.bash
8+
# shellcheck source=lib/utils.bash
99
. "${plugin_dir}/lib/utils.bash"
1010

1111
curl_opts=(-sI)

bin/list-all

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -euo pipefail
55
current_script_path=${BASH_SOURCE[0]}
66
plugin_dir=$(dirname "$(dirname "$current_script_path")")
77

8-
# shellcheck source=../lib/utils.bash
8+
# shellcheck source=lib/utils.bash
99
source "${plugin_dir}/lib/utils.bash"
1010

1111
list_all_versions | sort_versions | xargs echo

lib/utils.bash

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,22 @@ download_release() {
4949
}
5050

5151
get_platform() {
52-
local version=$1
53-
54-
case $(uname) in
55-
#Linux OS
56-
Linux)
57-
if [ "$(uname -m)" = "aarch64" ]; then
58-
echo "linux_arm64"
59-
else
60-
echo "linux_amd64"
61-
fi
62-
;;
63-
#Mac OS
64-
Darwin)
65-
echo "darwin_all"
66-
;;
67-
esac
52+
local version=$1
53+
54+
case $(uname) in
55+
#Linux OS
56+
Linux)
57+
if [ "$(uname -m)" = "aarch64" ]; then
58+
echo "linux_arm64"
59+
else
60+
echo "linux_amd64"
61+
fi
62+
;;
63+
#Mac OS
64+
Darwin)
65+
echo "darwin_all"
66+
;;
67+
esac
6868
}
6969

7070
install_version() {

0 commit comments

Comments
 (0)