fix shell script and make checks target
parent
f0b85cc96c
commit
c62d1a6d9a
22
justfile
22
justfile
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue