Skip to content

Commit 3158678

Browse files
committed
do not look for orbstack, use command instead of which
1 parent 344a46d commit 3158678

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

evb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ available options:
3434
--volume vol : specify an additional volume to put into the container
3535
see podman man page how to specify 'vol'. (no path magic is done ;))
3636
--runcmd : this lets you change the program used to start the container
37-
if not set explicit it looks for podman, orbstack and finally docker.
37+
if not set explicit it looks for podman or docker.
3838
3939
available command:
4040
help : print this help message and exit
@@ -109,14 +109,12 @@ done
109109
# lets see what we have as default runcmd:
110110
if [ -n "${RUNCMD}" ] ; then
111111
true
112-
elif [ -n $(which podman) ] ; then
112+
elif command -v podman >/dev/null 2>&1 ; then
113113
RUNCMD='podman'
114-
elif [ -n $(which orbstack) ] ; then
115-
RUNCMD='orbstack'
116-
elif [ -n $(which docker) ] ; then
114+
elif command -v docker >/dev/null 2>&1 ; then
117115
RUNCMD='docker'
118116
else
119-
echo "ERROR: could not find podman/orbstack or docker to start container" >&2
117+
echo "ERROR: could not find podman or docker to start container" >&2
120118
exit 200
121119
fi
122120

0 commit comments

Comments
 (0)