mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
bintools-wrapper: avoid subshells: upcase
This commit is contained in:
parent
42482a1d60
commit
bbc5b22ad8
@ -61,9 +61,8 @@ do
|
|||||||
if
|
if
|
||||||
PATH=$_PATH type -p "@targetPrefix@${cmd}" > /dev/null
|
PATH=$_PATH type -p "@targetPrefix@${cmd}" > /dev/null
|
||||||
then
|
then
|
||||||
upper_case="$(echo "$cmd" | tr "[:lower:]" "[:upper:]")"
|
export "${role_pre}${cmd^^}=@targetPrefix@${cmd}";
|
||||||
export "${role_pre}${upper_case}=@targetPrefix@${cmd}";
|
export "${cmd^^}${role_post}=@targetPrefix@${cmd}";
|
||||||
export "${upper_case}${role_post}=@targetPrefix@${cmd}";
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user