bintools-wrapper: use tr for uppercase

Since bash's parameter expansion for uppercase creates invalid
identifiers in certain locales (like Turkish), it is more ideal
to use `tr` for locale-agnostic string substitution.
This commit is contained in:
Null Terminator 2026-02-28 16:30:18 +03:00
commit 23c46c60c0
No known key found for this signature in database

View file

@ -60,7 +60,8 @@ do
if
PATH=$_PATH type -p "@targetPrefix@${cmd}" > /dev/null
then
export "${cmd^^}${role_post}=@targetPrefix@${cmd}";
upper_case="$(echo "$cmd" | tr "a-z" "A-Z")"
export "${upper_case}${role_post}=@targetPrefix@${cmd}";
fi
done