mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 10:02:47 +03:00
48aa77a2fa
These need to be run through the top-level nix-shell/shell.nix
15 lines
268 B
Bash
Executable File
15 lines
268 B
Bash
Executable File
#!/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 {} \+
|