Skip to content

Commit 11373c6

Browse files
committed
Fix shellcheck in add_tools.sh [skip ci]
1 parent 50ad257 commit 11373c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/tools/add_tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ get_tool_version() {
1111
alp="[a-zA-Z0-9\.]"
1212
version_regex="[0-9]+((\.{1}$alp+)+)(\.{0})(-$alp+){0,1}"
1313
if [ "$tool" = "composer" ]; then
14-
composer_alias_version="$(grep -Ea "const\sBRANCH_ALIAS_VERSION" "$tool_path_dir/composer" | grep -Eo "$version_regex")"
14+
composer_alias_version="$(grep -Ea "const\sBRANCH_ALIAS_VERSION" "${tool_path_dir:?}/composer" | grep -Eo "$version_regex")"
1515
if [[ -n "$composer_alias_version" ]]; then
1616
composer_version="$composer_alias_version+$(grep -Ea "const\sVERSION" "$tool_path_dir/composer" | grep -Eo "$alp+" | tail -n 1)"
1717
else

0 commit comments

Comments
 (0)