Skip to content

Commit

Permalink
Before fixing markdown style
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Aug 5, 2024
1 parent d63b948 commit 7819955
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scripts/fix_markdown_style_errors_and_commit.sh
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"

0 comments on commit 7819955

Please sign in to comment.