Skip to content

Commit

Permalink
💉 Close #11
Browse files Browse the repository at this point in the history
- Remove CommitChanges side effect by exiting from the script in any cases;
- Update ReadMe;
- Code cleaning.
  • Loading branch information
langroodi committed Jun 11, 2022
1 parent 6d3baf6 commit 1d9cb9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ Following is the latest doxygenize version:

| Release version | Docker image | Tag aliases |
| --------------- | ------------ | ---------- |
| v1.6.2 | Alpine 3.15.4 | v1, v1.6 |
| v1.6.3 | Alpine 3.15.4 | v1, v1.6 |
4 changes: 1 addition & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ CommitChanges () {
# Add only the destination directory
git add --force "$DESTINATIONDIR"

#check if there are any changes that are staged but not committed
# Check if there are any changes that are staged but not committed
if (! git diff --cached --exit-code --shortstat)
then

Expand All @@ -105,9 +105,7 @@ CommitChanges () {
git push
else
echo "There is no change in the documentation"
exit 0
fi

}

# Fetch the first argument (Doxygen configuration file path)
Expand Down

0 comments on commit 1d9cb9a

Please sign in to comment.