Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 407 Bytes

File metadata and controls

21 lines (13 loc) · 407 Bytes

Shell Formatter

We can format our shell scripts by using shfmt

Usage

docker run --rm -v $PWD:/mnt -w /mnt mvdan/shfmt {ARGS...}

Example

docker run --rm -v $PWD:/mnt -w /mnt mvdan/shfmt -w .

This will run shfmt and write changes to all the files in current directory

Reference(s)