diff --git a/scripts/lib/action.fish b/scripts/lib/action.fish index 64ede63c..6b77da97 100644 --- a/scripts/lib/action.fish +++ b/scripts/lib/action.fish @@ -17,9 +17,7 @@ function runAction -V dir and runHook --force installValhallaDeps 'Please set up a function `installValhallaDeps` for installing `fish`, `git`, `jq`, `nix`, `sudo` and `tmux`.' echo "Flagging repository as safe..." - if ! git status -C (status dirname) &> /dev/null - git config --system --add safe.directory (realpath "$(status dirname)/../..") - end + git config --system --add safe.directory (realpath "$(status dirname)/../..") and runHook preAction || true $argv