File tree Expand file tree Collapse file tree 5 files changed +20
-20
lines changed Expand file tree Collapse file tree 5 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ set -euo pipefail
55current_script_path=${BASH_SOURCE[0]}
66plugin_dir=$( dirname " $( dirname " $current_script_path " ) " )
77
8- # shellcheck source=../ lib/utils.bash
8+ # shellcheck source=lib/utils.bash
99source " ${plugin_dir} /lib/utils.bash"
1010
1111mkdir -p " $ASDF_DOWNLOAD_PATH "
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ set -euo pipefail
55current_script_path=${BASH_SOURCE[0]}
66plugin_dir=$( dirname " $( dirname " $current_script_path " ) " )
77
8- # shellcheck source=../ lib/utils.bash
8+ # shellcheck source=lib/utils.bash
99source " ${plugin_dir} /lib/utils.bash"
1010
1111install_version " $ASDF_INSTALL_TYPE " " $ASDF_INSTALL_VERSION " " $ASDF_INSTALL_PATH "
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ set -euo pipefail
55current_script_path=${BASH_SOURCE[0]}
66plugin_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
1111curl_opts=(-sI)
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ set -euo pipefail
55current_script_path=${BASH_SOURCE[0]}
66plugin_dir=$( dirname " $( dirname " $current_script_path " ) " )
77
8- # shellcheck source=../ lib/utils.bash
8+ # shellcheck source=lib/utils.bash
99source " ${plugin_dir} /lib/utils.bash"
1010
1111list_all_versions | sort_versions | xargs echo
Original file line number Diff line number Diff line change @@ -49,22 +49,22 @@ download_release() {
4949}
5050
5151get_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
7070install_version () {
You can’t perform that action at this time.
0 commit comments