From 131650490d1bc4e5f05b0d5b4951a2cdb543f550 Mon Sep 17 00:00:00 2001 From: LiZhenCheng9527 Date: Tue, 16 Jan 2024 15:27:52 +0800 Subject: [PATCH] change no equal 0 to more than 0 Signed-off-by: LiZhenCheng9527 --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9ef89ff44..1d2ec0913 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -73,8 +73,8 @@ jobs: # if restricted > 0, CI will report an error. run: | result=$(make lint-licenses | awk '{print $7}') - if [ $result -ne 0 ]; then - exit 1 + if [ $result -gt 0 ]; then + exit 1 fi test: name: Unit test