bintools-wrapper: avoid subshells: upcase

This commit is contained in:
Albert Safin 2019-09-19 14:17:34 +00:00
parent 42482a1d60
commit bbc5b22ad8

View File

@ -61,9 +61,8 @@ do
if
PATH=$_PATH type -p "@targetPrefix@${cmd}" > /dev/null
then
upper_case="$(echo "$cmd" | tr "[:lower:]" "[:upper:]")"
export "${role_pre}${upper_case}=@targetPrefix@${cmd}";
export "${upper_case}${role_post}=@targetPrefix@${cmd}";
export "${role_pre}${cmd^^}=@targetPrefix@${cmd}";
export "${cmd^^}${role_post}=@targetPrefix@${cmd}";
fi
done