command is only an executable on Fedora due to a downstream patch,
on Arch for example it's only a builtin so we have to use bash to
execute command -v to get proper results on Arch.
)
for bin in "${wrap[@]}"; do
- if ! mkosi-chroot command -v "$bin" >/dev/null; then
+ if ! mkosi-chroot bash -c "command -v $bin" >/dev/null; then
continue
fi
enable_lsan=0
fi
- target="$(mkosi-chroot command -v "$bin")"
+ target="$(mkosi-chroot bash -c "command -v $bin")"
mv "$BUILDROOT/$target" "$BUILDROOT/$target.orig"