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:
Newbyte 2022-03-23 19:45:26 +01:00 committed by Alexey Min
parent 1eef7fbdeb
commit 5389543c1a
No known key found for this signature in database
GPG Key ID: 0B19D2A65870B448
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ set_alias_pmbroot_kernelroot() {
cross_compiler_version() {
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 " | \
awk -F'[()]' '{ print $1 "("$2")" }'
else