Skip to content
Snippets Groups Projects
Commit 2e6041d0 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

tests/sanity/sanity.sh: shellcheck: Fix command for use_docker

use_docker was determined using `which docker`, shellcheck wants to have
`docker -v` instead.
parent a4c890ab
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ pushd "${TOPDIR}" >/dev/null || exit 1 ...@@ -6,7 +6,7 @@ pushd "${TOPDIR}" >/dev/null || exit 1
VENV=/tmp/ansible-test-venv VENV=/tmp/ansible-test-venv
ANSIBLE_COLLECTION=freeipa-ansible_freeipa ANSIBLE_COLLECTION=freeipa-ansible_freeipa
use_docker=$(which docker >/dev/null 2>&1 && echo "True" || echo "False") use_docker=$(docker -v >/dev/null 2>&1 && echo "True" || echo "False")
virtualenv "$VENV" virtualenv "$VENV"
# shellcheck disable=SC1091 # shellcheck disable=SC1091
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment