-#!/bin/sh
+#!/bin/bash
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2016 The Linux Foundation and others.
"robot,robot" \
"mininet,mininet-ubuntu"
do set -- $i
- if expr $HOST : ".*$1.*" ; then
+ if [[ $HOST == *"$1"* ]]; then
SYSTEM_TYPE="$2"
break
fi
-#!/bin/sh
+#!/bin/bash
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2022 The Linux Foundation and others.
set -x
case $mode in
branch-cut)
- if [ "${GERRIT_BRANCH}" = "master" ] && expr "${GERRIT_BRANCH_NEXT}" : "stable/.*"; then
+ if [ "${GERRIT_BRANCH}" == "master" ] && [[ "${GERRIT_BRANCH_NEXT}" =~ stable ]]; then
echo "INFO: Locking branch for new branch cutting: ${GERRIT_BRANCH_NEXT}"
git config -f project.config "access.refs/for/refs/heads/${GERRIT_BRANCH_NEXT}.exclusiveGroupPermissions" "create"
git config -f project.config "access.refs/for/refs/heads/${GERRIT_BRANCH_NEXT}.create" "block group Registered Users"
-#!/bin/sh
+#!/bin/bash
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2018 The Linux Foundation and others.
# The script builds 6wind/quagga source and binary packages from zrpcd
# repository for testing router functionalities with Netvirt jobs, .
-initdir=$(pwd)
-cd "$(pwd)/zrpcd"
+pushd "$(pwd)/zrpcd"
chmod a+x "$(pwd)/pkgsrc/dev_compile_script.sh"
cd "$(pwd)/pkgsrc" && sudo "./dev_compile_script.sh" -p -d -b -v "$QUAGGA_VERSION"
;;
esac
-cd $initdir
+popd
# todo: remove below lines once the scripts in zrpcd repos build the src packages.
# Ref: https://lists.opendaylight.org/pipermail/integration-dev/2018-July/012330.html
-#!/bin/sh -l
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
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"
-#!/bin/sh -l
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
EOF
# Blank line before EOF is on purpose to ensure there is spacing.
-IFS='
-'
+IFS=$'\n'
# We purposely want globbing here to build images list
# shellcheck disable=SC2207
-IMAGES="$(openstack image list --long -f value -c Name -c Protected \
- | grep 'ZZCI.*True' | sed 's/ True//')"
-for i in $IMAGES; do
+IMAGES=($(openstack image list --long -f value -c Name -c Protected \
+ | grep 'ZZCI.*True' | sed 's/ True//'))
+for i in "${IMAGES[@]}"; do
echo "Adding image $i"
echo "* $i" >> "$WORKSPACE/docs/cloud-images.rst"
done
-#!/bin/sh
+#!/bin/bash
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
mkdir -p ".chartstorage"
-chartmuseum --port=6464 --storage="local" --storage-local-rootdir=".chartstorage" >/dev/null 2>&1 &
+chartmuseum --port=6464 --storage="local" --storage-local-rootdir=".chartstorage" &> /dev/null &
. helm.prop
$HELM_BIN plugin install --version v0.9.0 https://github.com/chartmuseum/helm-push.git || true
$HELM_BIN repo add local http://localhost:6464