Implement hook enforcement using argparse

This commit is contained in:
Manuel Thalmann 2024-10-24 18:20:13 +02:00
parent 1019364aa3
commit 1c983b81ea
2 changed files with 8 additions and 4 deletions
scripts/Common/OS

View file

@ -57,7 +57,7 @@ function runSetup
end
and echo "Installing dependencies..."
and runHook installValhallaDeps true 'Please set up a function `installValhallaDeps` for installing `fish`, `git`, `jq`, `nix`, `sudo` and `tmux`.'
and runHook --force installValhallaDeps 'Please set up a function `installValhallaDeps` for installing `fish`, `git`, `jq`, `nix`, `sudo` and `tmux`.'
and echo "Cloning project..."
and source "$dir/../../copy-repo.fish" "$mountDir$PROJECT_CLONE_ROOT"
@ -65,7 +65,7 @@ function runSetup
and runHook setupOS
and echo "Preparing auto-login..."
and runHook autologin true "Please set up a function `autologin` for setting up autologin for the `root` user"
and runHook --force autologin "Please set up a function `autologin` for setting up autologin for the `root` user"
and begin
set -l script (string escape (getCloneFile (getInstallerScript)))