navi/scripts/lint

18 lines
372 B
Text
Raw Normal View History

2019-09-21 22:24:09 +00:00
#!/usr/bin/env bash
set -euo pipefail
# please refer to https://github.com/denisidoro/dotfiles/blob/master/scripts/code/beautify
2019-09-21 22:24:09 +00:00
export SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
files_to_lint() {
find . -iname '*.sh'
find scripts/*
echo "${SCRIPT_DIR}/test/run"
echo "${SCRIPT_DIR}/navi"
}
for f in $(files_to_lint); do
dot code beautify "$f"
done