diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-11-23 22:29:56 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-11-24 16:47:18 +0100 |
commit | 506403f5612cfab8477573b040fe690737d5deb3 (patch) | |
tree | d4940d9f98acd10dd117fe2d014780614a54d15a /mkosi.sanitizers | |
parent | mkosi: Add shellcheck to tools (diff) | |
download | systemd-506403f5612cfab8477573b040fe690737d5deb3.tar.xz systemd-506403f5612cfab8477573b040fe690737d5deb3.zip |
mkosi: Use bash to execute command -v
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.
Diffstat (limited to 'mkosi.sanitizers')
-rwxr-xr-x | mkosi.sanitizers/mkosi.postinst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mkosi.sanitizers/mkosi.postinst b/mkosi.sanitizers/mkosi.postinst index 593a8f99aa..ae60ab6519 100755 --- a/mkosi.sanitizers/mkosi.postinst +++ b/mkosi.sanitizers/mkosi.postinst @@ -93,7 +93,7 @@ wrap=( ) 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 @@ -103,7 +103,7 @@ for bin in "${wrap[@]}"; do enable_lsan=0 fi - target="$(mkosi-chroot command -v "$bin")" + target="$(mkosi-chroot bash -c "command -v $bin")" mv "$BUILDROOT/$target" "$BUILDROOT/$target.orig" |