From 3d22a37267a198c4077e4de2f24521391c4ad3bc Mon Sep 17 00:00:00 2001 From: Moandor Date: Mon, 28 Sep 2020 23:29:50 +0800 Subject: [PATCH] [continuous-integration] fix API change detector (#5589) --- script/check-api-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/check-api-version b/script/check-api-version index 8bfe28d12..abbb46875 100755 --- a/script/check-api-version +++ b/script/check-api-version @@ -46,7 +46,7 @@ main() git fetch --depth 1 origin "${OT_SHA_OLD}" - if git diff --name-only "${OT_SHA_OLD}" -- include/openthread; then + if git diff --name-only --exit-code "${OT_SHA_OLD}" -- include/openthread; then echo 'No OpenThread public APIs updates.' exit 0 fi