Skip to content

Commit

Permalink
infra: use double brackets in cluster/kubevirtci.sh (#989)
Browse files Browse the repository at this point in the history
Signed-off-by: Radim Hrazdil <[email protected]>
  • Loading branch information
rhrazdil authored Feb 16, 2022
1 parent 8679d09 commit 7661c06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cluster/kubevirtci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ function kubevirtci::_get_tag() {

function kubevirtci::install() {
# Remove cloned kubevirtci repository if it does not match the requested one
if [ -d ${KUBEVIRTCI_PATH} ]; then
if [ $(kubevirtci::_get_repo) != ${KUBEVIRTCI_REPO} -o $(kubevirtci::_get_tag) != ${KUBEVIRTCI_TAG} ]; then
if [[ -d ${KUBEVIRTCI_PATH} ]]; then
if [[ $(kubevirtci::_get_repo) != ${KUBEVIRTCI_REPO} || $(kubevirtci::_get_tag) != ${KUBEVIRTCI_TAG} ]]; then
rm -rf ${KUBEVIRTCI_PATH}
fi
fi

if [ ! -d ${KUBEVIRTCI_PATH} ]; then
if [[ ! -d ${KUBEVIRTCI_PATH} ]]; then
git clone ${KUBEVIRTCI_REPO} ${KUBEVIRTCI_PATH}
(
cd ${KUBEVIRTCI_PATH}
Expand Down

0 comments on commit 7661c06

Please sign in to comment.