Skip to content

Commit 4032a62

Browse files
committed
see if we can avoid undesirable error
1 parent 1d91719 commit 4032a62

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doxy_gen_and_deploy.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ if [ -d "html" ] && [ -f "html/index.html" ]; then
123123
echo 'Adding all files'
124124
git add --all
125125

126+
if [ -n "$(git status --porcelain)" ]; then
127+
echo "Changes to commit"
128+
else
129+
echo "No changes to commit"
130+
exit 0
131+
fi
132+
126133
# Commit the added files with a title and description containing the Travis CI
127134
# build number and the GitHub commit reference that issued this build.
128135
echo 'Git committing'

0 commit comments

Comments
 (0)