summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Heller <hellerda@linux.vnet.ibm.com>2018-03-31 22:44:43 -0400
committerDave Heller <hellerda@linux.vnet.ibm.com>2018-03-31 22:44:43 -0400
commitbafadcdfd40fa24285008af60852365cb46bd021 (patch)
tree94686ae6baea90ca5e65e9ceb8db505d171295c5
parent1665fe7b5301ab0bdf2ae2e55cbdfd315b3c7b3f (diff)
downloadsb-signing-utils-bafadcdfd40fa24285008af60852365cb46bd021.tar.gz
sb-signing-utils-bafadcdfd40fa24285008af60852365cb46bd021.zip
Quash a few more shellcheck warnings
Signed-off-by: Dave Heller <hellerda@linux.vnet.ibm.com>
-rwxr-xr-xcrtSignedContainer.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/crtSignedContainer.sh b/crtSignedContainer.sh
index 6ed6d62..d877234 100755
--- a/crtSignedContainer.sh
+++ b/crtSignedContainer.sh
@@ -772,7 +772,7 @@ fi
#
# Build the full container
#
-if [ "$HW_SIG_ARGS" -o "$SW_SIG_ARGS" ]; then
+if [ "$HW_SIG_ARGS" ] || [ "$SW_SIG_ARGS" ]; then
echo "--> $P: Have signatures for keys $FOUND adding to container..."
create-container $HW_KEY_ARGS $SW_KEY_ARGS \
$HW_SIG_ARGS $SW_SIG_ARGS \
@@ -800,14 +800,14 @@ test "$SB_ARCHIVE_OUT" && exportArchive "$SB_ARCHIVE_OUT"
#
# Validate, verify the container
#
-if [ "$(to_upper $SB_VALIDATE)" != Y -a \
- "$(to_upper $SB_VALIDATE)" != TRUE ]
+if [ "$(to_upper $SB_VALIDATE)" != Y ] && \
+ [ "$(to_upper $SB_VALIDATE)" != TRUE ]
then
SB_VALIDATE=""
fi
-if [ "$(to_upper $SB_PASS_ON_ERROR)" != Y -a \
- "$(to_upper $SB_PASS_ON_ERROR)" != TRUE ]
+if [ "$(to_upper $SB_PASS_ON_ERROR)" != Y ] && \
+ [ "$(to_upper $SB_PASS_ON_ERROR)" != TRUE ]
then
SB_PASS_ON_ERROR=""
fi
@@ -815,7 +815,7 @@ fi
test "$SB_VALIDATE" && VALIDATE_OPT="--validate"
test "$SB_VERIFY" && VERIFY_OPT="--verify" && VERIFY_ARGS="$SB_VERIFY"
-if [ "$VALIDATE_OPT" -o "$VERIFY_OPT" ]; then
+if [ "$VALIDATE_OPT" ] || [ "$VERIFY_OPT" ]; then
echo
print-container --imagefile "$OUTPUT" --no-print \
$DEBUG_ARGS $VALIDATE_OPT $VERIFY_OPT "$VERIFY_ARGS"
OpenPOWER on IntegriCloud