Unverified Commit 61370ca9 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #5350 from shuujii/refine-checking-for-trailing-whitespace

Refine checking for trailing whitespace [skip travis][skip appveyor]
parents 2725755b 4203e574
......@@ -32,9 +32,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: 🧹 Check for trailing whitespace
run: |
cd test || exit
sh ./check-for-trailing-whitespace.sh || exit 1
run: "! git grep -EIn $'[ \t]+$'"
yamllint:
name: 🍶 YAML
runs-on: ubuntu-latest
......
#!/usr/bin/env bash
cd .. || exit
# print first
grep -EHInr '( +)$' ./*
var=$(grep -EHInr '( +)$' ./*)
# then exit with fail if found
if test -z "$var"; then
exit 0
else
exit 1
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment