test if podman is available else use docker
This commit is contained in:
parent
238a6c4abd
commit
50aafa556e
1 changed files with 7 additions and 2 deletions
|
@ -2,9 +2,14 @@
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
#set -x # activate traces
|
#set -x # activate traces
|
||||||
|
|
||||||
|
if command -v podman &> /dev/null
|
||||||
|
then
|
||||||
|
DOCKER_BIN="podman"
|
||||||
|
else
|
||||||
|
DOCKER_BIN="docker"
|
||||||
|
fi
|
||||||
|
|
||||||
SCRIPT_DIR=$(realpath "$(dirname "$0")")
|
SCRIPT_DIR=$(realpath "$(dirname "$0")")
|
||||||
DOCKER_BIN="podman"
|
|
||||||
#DOCKER_BIN="docker" # switch if you use docker
|
|
||||||
|
|
||||||
printf "\n\n"
|
printf "\n\n"
|
||||||
printf "## Running $0 ##\n"
|
printf "## Running $0 ##\n"
|
||||||
|
|
Loading…
Add table
Reference in a new issue