Skip to content

Commit e0198d2

Browse files
committed
Fix actual bug found by shellcheck: use variable $QUIET.
1 parent 9b9486d commit e0198d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

submit_coverity_scan.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ if [ -z "$PROJECT" -o -z "$EMAIL" -o -z "$TOKEN" ]; then
133133
exit 1
134134
fi
135135

136-
[ -n "QUIET" ] || echo "Compressing scan directory 'cov-int' into '$ARCHIVE'..."
136+
[ -n "$QUIET" ] || echo "Compressing scan directory 'cov-int' into '$ARCHIVE'..."
137137

138138
tar caf "$ARCHIVE" cov-int
139139

140-
[ -n "QUIET" ] || echo "Submitting '$VERSION' '$DESC'"
140+
[ -n "$QUIET" ] || echo "Submitting '$VERSION' '$DESC'"
141141

142142
TMP=`mktemp --tmpdir curl-cov-submit-XXXXXX.html`
143143

@@ -147,7 +147,7 @@ curl --form token="$TOKEN" --form email="$EMAIL" --form file=@"$ARCHIVE" \
147147
-o $TMP ${QUIET:+-s} https://scan.coverity.com/builds?project="$PROJECT" 2>&1 \
148148
| quietfilter
149149

150-
[ -n "QUIET" ] || grep -vE '^[[:space:]]*$' $TMP
150+
[ -n "$QUIET" ] || grep -vE '^[[:space:]]*$' $TMP
151151

152152
rm -f $TMP
153153

0 commit comments

Comments
 (0)