Skip to content

Commit

Permalink
GitHub action - edge-info
Browse files Browse the repository at this point in the history
Fail if the output has any "\u" occurences, as that's a echo without
the -e doing it's nasty works.
  • Loading branch information
JanneKiiskila committed Dec 14, 2023
1 parent 32d2b68 commit 0fde867
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/pr-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,19 @@ jobs:
curl -L -o ./install-misspell.sh https://git.io/misspell
sh ./install-misspell.sh
bin/misspell -i mosquitto
run-edge-info:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: |
cd edge-info
./edge-info
out=$(./edge-info)
# If we find \u* anything in the output,
# likely a echo -e mistake
if echo "$out" | grep -q "\\\\u"; then
echo "The string contains \\u"
echo "Likely a echo -e mistake"
exit 1
fi

0 comments on commit 0fde867

Please sign in to comment.