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:
Menno van Leeuwen 2025-01-15 13:44:34 +01:00
parent a0245017f7
commit 733be4c7c8
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

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