From 0654ed354901dab64cac2318a2f6ba3a7d3dc7da Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 4 Aug 2023 16:41:39 -0700 Subject: [PATCH] Fixed style warning from shellcheck re x in comparisons. --- fips-check.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fips-check.sh b/fips-check.sh index 720aae926..dd2029c83 100755 --- a/fips-check.sh +++ b/fips-check.sh @@ -38,8 +38,8 @@ TEST_DIR="${TEST_DIR:-XXX-fips-test}" FLAVOR="${FLAVOR:-linux}" KEEP="${KEEP:-no}" -while [ "x$1" != 'x' ]; do - if [ "x$1" = 'xkeep' ]; then KEEP='yes'; else FLAVOR="$1"; fi +while [ "$1" ]; do + if [ "$1" = 'keep' ]; then KEEP='yes'; else FLAVOR="$1"; fi shift done