From d70e92b05d38596643663d7e4009234ed0df815b Mon Sep 17 00:00:00 2001 From: Phillip Schichtel Date: Sun, 28 Apr 2024 05:17:43 +0200 Subject: [PATCH] which -> command --- compile-native.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compile-native.sh b/compile-native.sh index 58ffde80..87794455 100755 --- a/compile-native.sh +++ b/compile-native.sh @@ -46,10 +46,10 @@ else if [ -n "${RUN_CONTAINER_COMMAND:-}" ] then ${RUN_CONTAINER_COMMAND} "$dockcross_image" - elif [ -n "$(which podman)" ] + elif [ -n "$(command -v podman)" ] then podman run --rm "$dockcross_image" > "$proxy" - elif [ -n "$(which docker)" ] + elif [ -n "$(command -v docker)" ] then docker run --rm "$dockcross_image" > "$proxy" else