Skip to content

Commit

Permalink
scripts: don't fail if there is no diff to commit
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes authored and LorenzMeier committed Feb 3, 2021
1 parent 841aec4 commit 7eec42f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update_c_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ echo -e "\0033[34mFinished generating c headers\0033[0m\n"
cd $CLIBRARY_PATH
git add --all :/ || exit 1
COMMIT_MESSAGE="autogenerated headers for rev https://github.com/mavlink/mavlink/tree/"$MAVLINK_GITHASH
git commit -m "$COMMIT_MESSAGE" || exit 1
git commit -m "$COMMIT_MESSAGE" || exit 0 # for the case when nothing is there to commit

# push to c_library repository
git push $CLIBRARY_GIT_REMOTENAME $CLIBRARY_GIT_BRANCHNAME || exit 1
Expand Down

0 comments on commit 7eec42f

Please sign in to comment.