Skip to content

Commit 0654ed3

Browse files
committed
Fixed style warning from shellcheck re x in comparisons.
1 parent f3af454 commit 0654ed3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fips-check.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ TEST_DIR="${TEST_DIR:-XXX-fips-test}"
3838
FLAVOR="${FLAVOR:-linux}"
3939
KEEP="${KEEP:-no}"
4040

41-
while [ "x$1" != 'x' ]; do
42-
if [ "x$1" = 'xkeep' ]; then KEEP='yes'; else FLAVOR="$1"; fi
41+
while [ "$1" ]; do
42+
if [ "$1" = 'keep' ]; then KEEP='yes'; else FLAVOR="$1"; fi
4343
shift
4444
done
4545

0 commit comments

Comments
 (0)