Skip to content

Commit 4a07617

Browse files
authored
Merge pull request #12205 from typhoonzero/update_build_script
Update build script
2 parents 9c0fad4 + 76efa9b commit 4a07617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/scripts/paddle_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ function assert_api_not_changed() {
333333
python ${PADDLE_ROOT}/tools/diff_api.py ${PADDLE_ROOT}/paddle/fluid/API.spec new.spec
334334
deactivate
335335

336-
API_CHANGE=`git diff --name-only HEAD^ | grep "paddle/fluid/API.spec" | true`
336+
API_CHANGE=`git diff --name-only HEAD^ | grep "paddle/fluid/API.spec" || true`
337337
echo "checking API.spec change, PR: ${GIT_PR_ID}, changes: ${API_CHANGE}"
338338
if [ ${API_CHANGE} ] && [ "${GIT_PR_ID}" != "" ]; then
339339
# TODO: curl -H 'Authorization: token ${TOKEN}'

0 commit comments

Comments
 (0)