fix shell script and make checks target

main
Andrew Coleman 2024-02-05 12:37:44 -05:00
parent f0b85cc96c
commit c62d1a6d9a
1 changed files with 12 additions and 10 deletions

View File

@ -1,21 +1,23 @@
_default: _default:
@just --list @just --list
# runs checks
checks: _shellcheck _shfmt
_shellcheck:
shellcheck *.sh
_shfmt:
shfmt -i 2 -w -s *.sh
# performs steps for mac # performs steps for mac
mac: mac:
./install-cli-tools.sh ./install-cli-tools.sh
./setup-shell-config.sh [ -f "$HOME/.nix-profile/bin/terminal-notifier" ] || nix profile install nixpkgs#terminal-notifier
./setup-shell-configs.sh
./install-mac-apps.sh ./install-mac-apps.sh
# performs steps for linux # performs steps for linux
linux: linux:
./install-cli-tools.sh ./install-cli-tools.sh
./setup-shell-config.sh ./setup-shell-configs.sh
# checks all shell scripts for errors
shellcheck:
shellcheck *.sh
# formats all shell scripts consistently
shfmt:
shfmt -i 2 -w -s *.sh