mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
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:
parent
2f79d3942d
commit
23c46c60c0
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue