refactor setup script to remove continuation flag handling and streamline installation steps
All checks were successful
Nix Format Check / check-format (push) Successful in 38s
All checks were successful
Nix Format Check / check-format (push) Successful in 38s
This commit is contained in:
parent
0747d2a784
commit
a3f2b7d759
18
setup.sh
18
setup.sh
@ -446,12 +446,6 @@ main() {
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if this is a continuation -c flag
|
|
||||||
if [ "$1" = "-c" ]; then
|
|
||||||
log_info "Continuing setup..."
|
|
||||||
CONTINUATION=true
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
check_prerequisites
|
check_prerequisites
|
||||||
|
|
||||||
@ -461,14 +455,10 @@ main() {
|
|||||||
git clone "$GIT_REPO" "$DOTFILES_DIR" || die "Failed to clone dotfiles repository"
|
git clone "$GIT_REPO" "$DOTFILES_DIR" || die "Failed to clone dotfiles repository"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run setup steps
|
warning_prompt
|
||||||
if [ "$CONTINUATION" != "true" ]; then
|
prepare_hostname
|
||||||
warning_prompt
|
check_selinux
|
||||||
prepare_hostname
|
install_nix
|
||||||
check_selinux
|
|
||||||
install_nix
|
|
||||||
fi
|
|
||||||
|
|
||||||
install_home_manager
|
install_home_manager
|
||||||
setup_symlinks
|
setup_symlinks
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user