From c62d1a6d9af31965b3c94aea3e8da26b6b9f195f Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Mon, 5 Feb 2024 12:37:44 -0500 Subject: [PATCH] fix shell script and make checks target --- justfile | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/justfile b/justfile index 89fbdc6..52668e5 100644 --- a/justfile +++ b/justfile @@ -1,21 +1,23 @@ _default: @just --list +# runs checks +checks: _shellcheck _shfmt + +_shellcheck: + shellcheck *.sh + +_shfmt: + shfmt -i 2 -w -s *.sh + # performs steps for mac mac: ./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 # performs steps for linux linux: ./install-cli-tools.sh - ./setup-shell-config.sh - -# checks all shell scripts for errors -shellcheck: - shellcheck *.sh - -# formats all shell scripts consistently -shfmt: - shfmt -i 2 -w -s *.sh + ./setup-shell-configs.sh