refactor setup script to improve argument handling for continuation flag
All checks were successful
Nix Format Check / check-format (push) Successful in 38s

This commit is contained in:
2025-01-15 13:44:34 +01:00
parent a0245017f7
commit 733be4c7c8

View File

@@ -455,6 +455,7 @@ main() {
git clone "$GIT_REPO" "$DOTFILES_DIR" || die "Failed to clone dotfiles repository"
fi
if [ -n "${1:-}" ]; then
CONTINUE=$1
if [ "$CONTINUE" = "--continue" ]; then
log_info "Continuing setup..."
@@ -464,6 +465,13 @@ main() {
check_selinux
install_nix
fi
else
warning_prompt
prepare_hostname
check_selinux
install_nix
fi
install_home_manager
setup_symlinks