diff options
author | Richard Samuels <richard.l.samuels@gmail.com> | 2021-06-24 19:45:51 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-02 02:08:51 +0000 |
commit | 8a30e2e888640f58bd7e5134e14b39de4b0b1491 (patch) | |
tree | 72e16e9201e83f34265e0ed3a595b9e5794e0e32 /buildscripts/shellscripts-linters.sh | |
parent | 951dfeb5aca55cc881293372dfda4b72bb478b92 (diff) | |
download | mongo-8a30e2e888640f58bd7e5134e14b39de4b0b1491.tar.gz |
SERVER-57140 reformat shell scripts and allow space between redirect operators
Diffstat (limited to 'buildscripts/shellscripts-linters.sh')
-rwxr-xr-x | buildscripts/shellscripts-linters.sh | 4 |
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 "" |