Skip to content

Commit

Permalink
Quote the output of git in lint checks (#9)
Browse files Browse the repository at this point in the history
Otherwise, `[]` may fail.
  • Loading branch information
xuhdev authored Jun 3, 2024
1 parent f978636 commit ab96e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ jobs:

- name: Check file changes
run: |
if [ $(git status --porcelain | grep readme) ]; then
if [ "$(git status --porcelain | grep readme)" ]; then
echo "::error::content/posts/kamimod/readme.md is out of sync. Please run ./update-post.sh" && exit 1
fi

0 comments on commit ab96e0a

Please sign in to comment.