From 0766a07b79105a7b29bb397c84f6b57eb29cc845 Mon Sep 17 00:00:00 2001 From: Oleg Sheynin Date: Thu, 8 Aug 2024 13:04:16 -0400 Subject: [PATCH] fix --- release_version.txt | 2 +- research/load_crypto_md.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/release_version.txt b/release_version.txt index 95b25ae..3336003 100644 --- a/release_version.txt +++ b/release_version.txt @@ -1 +1 @@ -1.3.6 +1.3.7 diff --git a/research/load_crypto_md.sh b/research/load_crypto_md.sh index 4ed7d3c..34c2450 100755 --- a/research/load_crypto_md.sh +++ b/research/load_crypto_md.sh @@ -7,7 +7,8 @@ usage() { is_valid() { local inst=$1 - local valid_instances=$2 + shift + local valid_instances=("$@") for valid_inst in "${valid_instances[@]}"; do @@ -52,17 +53,16 @@ echo "$date $host $source" valid_hosts=('homestore' 'cloud21') if ! is_valid "${host}" "${valid_hosts[@]}" ; then - echo h + echo "Host '${host}' is not valid" usage fi valid_sources=('cloud21' 'cvttdata') if ! is_valid ${source} ${valid_sources[@]} ; then - echo s + echo "Source '${source}' is not valid" usage fi - if [ "${host}" == "cloud21" ] ; then SourceHost=cloud21.cvtt.vpn SourceUser=cvtt