-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d63b948
commit 7819955
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
# | ||
# Fix markdown style errors and commit. | ||
# | ||
# Usage: | ||
# | ||
# ./scripts/fix_markdown_style_errors_and_commit.sh | ||
|
||
if [[ "$PWD" =~ scripts$ ]]; then | ||
echo "FATAL ERROR." | ||
echo "Please run the script from the project root. " | ||
echo "Present working director: $PWD" | ||
echo " " | ||
echo "Tip: like this" | ||
echo " " | ||
echo " ./scripts/fix_markdown_style_errors_and_commit.sh" | ||
echo " " | ||
exit 42 | ||
fi | ||
|
||
git add . | ||
git commit -m "Before fixing markdown style" | ||
./scripts/fix_markdown_style_errors.sh | ||
git add . | ||
git commit -m "Fix markdown style" |