mirror of
https://github.com/urbit/shrub.git
synced 2024-12-02 21:34:04 +03:00
15 lines
268 B
Plaintext
15 lines
268 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
# Usage: fmt-shell
|
||
|
|
||
|
set -euo pipefail
|
||
|
|
||
|
cd "${0%/*}/.."
|
||
|
|
||
|
echo "Formatting Shell"
|
||
|
|
||
|
# FIXME: Avoid inplace (-w) modifications for now.
|
||
|
find sh -type f \
|
||
|
-exec shfmt -s -i 2 -ln bash -l {} \+ \
|
||
|
-exec shellcheck --shell=bash --format=tty {} \+
|