Skip to content

Commit 2e16216

Browse files
committed
ci-build.sh: simplify ORed test syntax
1 parent ca52b47 commit 2e16216

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ci-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ EOL
9595
echo "Output of failed attempt follows:"
9696
echo "$scmURL"
9797
else
98-
if [ ! "$SIGNING_ASC" ] || [ ! "$GPG_KEY_NAME" ] || [ ! "$GPG_PASSPHRASE" ] || [ ! "$MAVEN_PASS" ] || [ ! "$OSSRH_PASS" ]; then
98+
if [ ! "$SIGNING_ASC" -o ! "$GPG_KEY_NAME" -o ! "$GPG_PASSPHRASE" -o ! "$MAVEN_PASS" -o ! "$OSSRH_PASS" ]; then
9999
echo "No deploy -- secure environment variables not available"
100100
elif [ "$BUILD_REPOSITORY" -a "$BUILD_REPOSITORY" != "$scmURL" ]; then
101101
echo "No deploy -- repository fork: $BUILD_REPOSITORY != $scmURL"

0 commit comments

Comments
 (0)