Fix: bashisms - step 2
[releng/builder.git] / jjb / opendaylight-infra-stack.sh
index e1e398ab05395f568510efa5272ed674a5979ed8..734a01b0fbc5617a24fb9ddb40dfb1640e9fe841 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash -l
+#!/bin/sh -l
 # SPDX-License-Identifier: EPL-1.0
 ##############################################################################
 # Copyright (c) 2017 The Linux Foundation and others.
@@ -60,7 +60,7 @@ for try in $(seq $STACK_RETRIES); do
                     sleep 30
                     delete_status=$(openstack stack show "$STACK_NAME" -f value -c stack_status)
                     echo "$j: $delete_status"
-                    if [[ $delete_status == "DELETE_FAILED" ]]; then
+                    if [ "$delete_status" = "DELETE_FAILED" ]; then
                         reason=$(openstack stack show "$STACK_NAME" -f value -c stack_status_reason)
                         echo "ERROR: Failed to delete $STACK_NAME. Reason: $reason"