Skip to content

Commit dc76d6a

Browse files
committed
xx-cargo: use command
Signed-off-by: CrazyMax <[email protected]>
1 parent 152816f commit dc76d6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xx-cargo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ if xx-info is-cross; then
8787
export "CC_$(echo "$nativeRustTriple" | tr - _)=$nativeClangTriple-clang"
8888
fi
8989

90-
if which "qemu-$(RISCV64_TARGET_ARCH='' ARM_TARGET_ARCH='' xx-info march)" >/dev/null 2>&1 && [ "$XX_OS" = "linux" ]; then
90+
if command -v "qemu-$(RISCV64_TARGET_ARCH='' ARM_TARGET_ARCH='' xx-info march)" >/dev/null 2>&1 && [ "$XX_OS" = "linux" ]; then
9191
export "CARGO_TARGET_$(xx-info | tr '[:lower:]' '[:upper:]' | tr - _)_RUNNER=qemu-$(RISCV64_TARGET_ARCH='' ARM_TARGET_ARCH='' xx-info march)"
9292
if [ -f /etc/alpine-release ]; then
9393
export "QEMU_LD_PREFIX=/$(RISCV64_TARGET_ARCH='' ARM_TARGET_ARCH='' xx-info)/"

0 commit comments

Comments
 (0)