diff --git a/scripts/novarc b/scripts/novarc index 8e0c16ad..82923eb3 100644 --- a/scripts/novarc +++ b/scripts/novarc @@ -1,5 +1,5 @@ -_OS_PARAMS=$(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ') -for param in $_OS_PARAMS; do +_OS_PARAMS=($(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ')) +for param in ${_OS_PARAMS[@]}; do if [ "$param" = "OS_AUTH_PROTOCOL" ]; then continue; fi if [ "$param" = "OS_CACERT" ]; then continue; fi unset $param diff --git a/scripts/novarc_unset_all b/scripts/novarc_unset_all index 811e8545..89ae2d55 100644 --- a/scripts/novarc_unset_all +++ b/scripts/novarc_unset_all @@ -1,5 +1,5 @@ -_OS_PARAMS=$(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ') -for param in $_OS_PARAMS; do +_OS_PARAMS=($(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ')) +for param in ${_OS_PARAMS[@]}; do unset $param done unset _OS_PARAMS diff --git a/scripts/novarcv3_demo_project b/scripts/novarcv3_demo_project index 56d74ac6..a9a32ffc 100644 --- a/scripts/novarcv3_demo_project +++ b/scripts/novarcv3_demo_project @@ -1,5 +1,5 @@ -_OS_PARAMS=$(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ') -for param in $_OS_PARAMS; do +_OS_PARAMS=($(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ')) +for param in ${_OS_PARAMS[@]}; do if [ "$param" = "OS_AUTH_PROTOCOL" ]; then continue; fi if [ "$param" = "OS_CACERT" ]; then continue; fi unset $param diff --git a/scripts/novarcv3_domain b/scripts/novarcv3_domain index 9c3e1f4e..7111bf44 100644 --- a/scripts/novarcv3_domain +++ b/scripts/novarcv3_domain @@ -1,5 +1,5 @@ -_OS_PARAMS=$(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ') -for param in $_OS_PARAMS; do +_OS_PARAMS=($(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ')) +for param in ${_OS_PARAMS[@]}; do if [ "$param" = "OS_AUTH_PROTOCOL" ]; then continue; fi if [ "$param" = "OS_CACERT" ]; then continue; fi unset $param diff --git a/scripts/novarcv3_project b/scripts/novarcv3_project index 690f370a..f1ce637f 100644 --- a/scripts/novarcv3_project +++ b/scripts/novarcv3_project @@ -1,5 +1,5 @@ -_OS_PARAMS=$(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ') -for param in $_OS_PARAMS; do +_OS_PARAMS=($(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ')) +for param in ${_OS_PARAMS[@]}; do if [ "$param" = "OS_AUTH_PROTOCOL" ]; then continue; fi if [ "$param" = "OS_CACERT" ]; then continue; fi unset $param diff --git a/scripts/novarcv3_ssl_domain b/scripts/novarcv3_ssl_domain index c77eac7a..a2864de3 100644 --- a/scripts/novarcv3_ssl_domain +++ b/scripts/novarcv3_ssl_domain @@ -1,5 +1,5 @@ -_OS_PARAMS=$(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ') -for param in $_OS_PARAMS; do +_OS_PARAMS=($(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ')) +for param in ${_OS_PARAMS[@]}; do if [ "$param" = "OS_AUTH_PROTOCOL" ]; then continue; fi if [ "$param" = "OS_CACERT" ]; then continue; fi unset $param diff --git a/scripts/novarcv3_ssl_project b/scripts/novarcv3_ssl_project index f31bb2f5..0b0cd7d0 100644 --- a/scripts/novarcv3_ssl_project +++ b/scripts/novarcv3_ssl_project @@ -1,5 +1,5 @@ -_OS_PARAMS=$(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ') -for param in $_OS_PARAMS; do +_OS_PARAMS=($(env | awk 'BEGIN {FS="="} /^OS_/ {print $1;}' | paste -sd ' ')) +for param in ${_OS_PARAMS[@]}; do if [ "$param" = "OS_AUTH_PROTOCOL" ]; then continue; fi if [ "$param" = "OS_CACERT" ]; then continue; fi unset $param