Skip to content

Commit

Permalink
Change : tools/lint file for formatting changes.
Browse files Browse the repository at this point in the history
Why the change : make lint fails while sh-lint is being executed.

PR weaveworks#3231
  • Loading branch information
meghalidhoble committed Jul 17, 2018
1 parent 887a127 commit 234c841
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/lint
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ lint_sh() {

#Skip shfmt validation, if not installed
if type shfmt >/dev/null 2>&1; then
if ! diff -u "${filename}" <(shfmt -i 4 "${filename}"); then
lint_result=1
echo "${filename}: run shfmt -i 4 -w ${filename}"
fi
if ! diff -u "${filename}" <(shfmt -i 4 "${filename}"); then
lint_result=1
echo "${filename}: run shfmt -i 4 -w ${filename}"
fi
fi

# the shellcheck is completely optional. If you don't like it
Expand Down

0 comments on commit 234c841

Please sign in to comment.