From eeff0c3b9454033378db2a52922c8c22fe41e028 Mon Sep 17 00:00:00 2001 From: Brett C Date: Tue, 22 Jun 2021 19:03:18 +1000 Subject: [PATCH] Refactor for more efficient evaulation --- migrate2rocky/migrate2rocky.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrate2rocky/migrate2rocky.sh b/migrate2rocky/migrate2rocky.sh index f77da42..d2e36b4 100644 --- a/migrate2rocky/migrate2rocky.sh +++ b/migrate2rocky/migrate2rocky.sh @@ -265,7 +265,7 @@ repoinfo () { fi declare -gA repoinfo_results=() while IFS=" :" read -r name val; do - if [[ -z $name ]] && [[ -z $val ]]; then + if [[ ! ( $name || $val) ]]; then continue fi if [[ -z $name ]]; then