summaryrefslogtreecommitdiff
path: root/buildscripts/shellscripts-linters.sh
diff options
context:
space:
mode:
authorRichard Samuels <richard.l.samuels@gmail.com>2021-06-24 19:45:51 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-07-02 02:08:51 +0000
commit8a30e2e888640f58bd7e5134e14b39de4b0b1491 (patch)
tree72e16e9201e83f34265e0ed3a595b9e5794e0e32 /buildscripts/shellscripts-linters.sh
parent951dfeb5aca55cc881293372dfda4b72bb478b92 (diff)
downloadmongo-8a30e2e888640f58bd7e5134e14b39de4b0b1491.tar.gz
SERVER-57140 reformat shell scripts and allow space between redirect operators
Diffstat (limited to 'buildscripts/shellscripts-linters.sh')
-rwxr-xr-xbuildscripts/shellscripts-linters.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildscripts/shellscripts-linters.sh b/buildscripts/shellscripts-linters.sh
index 6df3d53572d..a25b45bd466 100755
--- a/buildscripts/shellscripts-linters.sh
+++ b/buildscripts/shellscripts-linters.sh
@@ -14,13 +14,13 @@ fi
lint_dirs="evergreen"
if [ "$1" = "fix" ]; then
- shfmt -w -i 2 -bn "$lint_dirs"
+ shfmt -w -i 2 -bn -sr "$lint_dirs"
fi
output_file="shfmt_output.txt"
exit_code=0
-shfmt -d -i 2 -bn "$lint_dirs" >"$output_file"
+shfmt -d -i 2 -bn -sr "$lint_dirs" >"$output_file"
if [ -s "$output_file" ]; then
echo "ERROR: Found formatting errors in shell script files in directories: $lint_dirs"
echo ""