shell-formatter
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)
Last updated