From 11373c6dce1d76fa20c1bcc7b4f916c75214b832 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 28 Jul 2025 20:13:02 +0530 Subject: [PATCH] Fix shellcheck in add_tools.sh [skip ci] --- src/scripts/tools/add_tools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/tools/add_tools.sh b/src/scripts/tools/add_tools.sh index 7cd6524b..7f8e3896 100644 --- a/src/scripts/tools/add_tools.sh +++ b/src/scripts/tools/add_tools.sh @@ -11,7 +11,7 @@ get_tool_version() { alp="[a-zA-Z0-9\.]" version_regex="[0-9]+((\.{1}$alp+)+)(\.{0})(-$alp+){0,1}" if [ "$tool" = "composer" ]; then - composer_alias_version="$(grep -Ea "const\sBRANCH_ALIAS_VERSION" "$tool_path_dir/composer" | grep -Eo "$version_regex")" + composer_alias_version="$(grep -Ea "const\sBRANCH_ALIAS_VERSION" "${tool_path_dir:?}/composer" | grep -Eo "$version_regex")" if [[ -n "$composer_alias_version" ]]; then composer_version="$composer_alias_version+$(grep -Ea "const\sVERSION" "$tool_path_dir/composer" | grep -Eo "$alp+" | tail -n 1)" else