chore: fix linting issues

This commit is contained in:
Christopher Palmer 2024-03-18 13:53:37 +11:00
parent 257fff639e
commit 8d0fc4fdaa
2 changed files with 6 additions and 6 deletions

View File

@ -218,7 +218,7 @@ _install_directory_tools() {
local plugin_version local plugin_version
for plugin_version in "${parts[@]:1}"; do for plugin_version in "${parts[@]:1}"; do
# install the version # install the version
display_none $(install_tool_version "$plugin_name" "$plugin_version") display_none "$(install_tool_version "$plugin_name" "$plugin_version")"
tools_installed=$(printf "%s %s" "$tools_installed" "$plugin_name" | awk '{$1=$1};1') tools_installed=$(printf "%s %s" "$tools_installed" "$plugin_name" | awk '{$1=$1};1')
done done
@ -231,12 +231,12 @@ _install_directory_tools() {
plugin_version=$env_version plugin_version=$env_version
# install the version # install the version
display_none $(install_tool_version "$plugin_name" "$plugin_version") display_none "$(install_tool_version "$plugin_name" "$plugin_version")"
tools_installed=$(printf "%s %s" "$tools_installed" "$plugin_name" | awk '{$1=$1};1') tools_installed=$(printf "%s %s" "$tools_installed" "$plugin_name" | awk '{$1=$1};1')
fi fi
display_debug "_install_directory_tools '$search_path': installed '$plugin_name':'$plugin_version' new state of tools_installed='$tools_installed'" display_debug "_install_directory_tools '$search_path': installed '$plugin_name':'$plugin_version' new state of tools_installed='$tools_installed'"
done <<<$tool_versions done <<<"$tool_versions"
printf "%s\n" "$tools_installed" printf "%s\n" "$tools_installed"
} }
@ -291,7 +291,7 @@ _install_directory_tools_legacy() {
fi fi
display_debug "_install_directory_tools_legacy '$search_path': legacy_install $plugin_name: plugin_version='$plugin_version'" display_debug "_install_directory_tools_legacy '$search_path': legacy_install $plugin_name: plugin_version='$plugin_version'"
display_none $(install_tool_version "$plugin_name" "$plugin_version") display_none "$(install_tool_version "$plugin_name" "$plugin_version")"
tools_installed=$(printf "%s %s" "$tools_installed" "$plugin_name" | awk '{$1=$1};1') tools_installed=$(printf "%s %s" "$tools_installed" "$plugin_name" | awk '{$1=$1};1')
display_debug "_install_directory_tools_legacy '$search_path': legacy_install $plugin_name: installed '$plugin_version' new state of tools_installed='$tools_installed'" display_debug "_install_directory_tools_legacy '$search_path': legacy_install $plugin_name: installed '$plugin_version' new state of tools_installed='$tools_installed'"
@ -450,7 +450,7 @@ stringlist_contains() {
local array local array
IFS=' ' read -r -a array <<<"$list" IFS=' ' read -r -a array <<<"$list"
for item in "${array[@]}"; do for item in "${array[@]}"; do
if [ $item = $search ]; then if [ "$item" = "$search" ]; then
printf "true\n" printf "true\n"
return 0 return 0
fi fi

View File

@ -157,7 +157,7 @@ display_error() {
} }
display_debug_hr() { display_debug_hr() {
display_debug "--------------------------------------------------------------------------------------------------------------" display_debug "--------------------------------------------------------------------------------------------------------------"
} }
display_debug() { display_debug() {