Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bbguimaraes
bbguimaraes.com
Commits
06e350d4
Commit
06e350d4
authored
Mar 27, 2021
by
bbguimaraes
Browse files
scripts/tidy: ignore external files
parent
9c9b3281
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/tidy.sh
View file @
06e350d4
#!/bin/bash
set
-euo
pipefail
for
f
in
$(
find bbguimaraes.com/
-type
f
-a
-name
'*.html'
)
;
do
for
f
in
$(
find
\
bbguimaraes.com/
\
-path
bbguimaraes.com/files
-prune
-o
\(
-type
f
-a
-name
'*.html'
\)
\
)
;
do
if
!
out
=
$(
tidy
-quiet
-errors
"
$f
"
2>&1
)
;
then
printf
'%s\n%s\n'
"
$f
"
"
$out
"
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment