Skip to content

Commit

Permalink
Revert bash equality test
Browse files Browse the repository at this point in the history
Change-Id: I081e5e38cda4e95655647cae703dabe72179ac8c
  • Loading branch information
wesm committed Jun 23, 2017
1 parent 31b2705 commit 732e426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/release/run-rat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ python $RELEASE_DIR/check-rat-report.py $RELEASE_DIR/rat_exclude_files.txt rat.t
cat filtered_rat.txt
UNAPPROVED=`cat filtered_rat.txt | grep "NOT APPROVED" | wc -l`

if [ "${UNAPPROVED}" = "0" ]; then
if [ "0" -eq "${UNAPPROVED}" ]; then
echo "No unapproved licenses"
else
echo "${UNAPPROVED} unapproved licences. Check rat report: rat.txt"
Expand Down

0 comments on commit 732e426

Please sign in to comment.