Skip to content

Commit

Permalink
which -> command
Browse files Browse the repository at this point in the history
  • Loading branch information
pschichtel committed Apr 28, 2024
1 parent 094eb59 commit d70e92b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compile-native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d70e92b

Please sign in to comment.