helpers/envkernel.sh: use "$pmbootstrap" in cross_compiler_version() (MR 2173)
This fixes an issue where if pmbootstrap is accessed via a different command than pmbootstrap on the user's system (I have it set to pmb for example), cross_compiler_version() would try to use a command that doesn't exist. On my system, this results in it always asking if I want to install pmbootstrap every time I run envkerenl.sh.
This commit is contained in:
parent
1eef7fbdeb
commit
5389543c1a
|
@ -260,7 +260,7 @@ set_alias_pmbroot_kernelroot() {
|
||||||
|
|
||||||
cross_compiler_version() {
|
cross_compiler_version() {
|
||||||
if [ "$need_cross_compiler" = 1 ]; then
|
if [ "$need_cross_compiler" = 1 ]; then
|
||||||
pmbootstrap chroot --user -- "${cross_compiler}gcc" --version \
|
"$pmbootstrap" chroot --user -- "${cross_compiler}gcc" --version \
|
||||||
2> /dev/null | grep "^.*gcc " | \
|
2> /dev/null | grep "^.*gcc " | \
|
||||||
awk -F'[()]' '{ print $1 "("$2")" }'
|
awk -F'[()]' '{ print $1 "("$2")" }'
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue