refactor setup script to improve argument handling for continuation flag
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
a0245017f7
commit
733be4c7c8
14
setup.sh
14
setup.sh
@ -455,9 +455,16 @@ 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
|
||||||
|
|
||||||
CONTINUE=$1
|
if [ -n "${1:-}" ]; then
|
||||||
if [ "$CONTINUE" = "--continue" ]; then
|
CONTINUE=$1
|
||||||
log_info "Continuing setup..."
|
if [ "$CONTINUE" = "--continue" ]; then
|
||||||
|
log_info "Continuing setup..."
|
||||||
|
else
|
||||||
|
warning_prompt
|
||||||
|
prepare_hostname
|
||||||
|
check_selinux
|
||||||
|
install_nix
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
warning_prompt
|
warning_prompt
|
||||||
prepare_hostname
|
prepare_hostname
|
||||||
@ -465,6 +472,7 @@ main() {
|
|||||||
install_nix
|
install_nix
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
install_home_manager
|
install_home_manager
|
||||||
setup_symlinks
|
setup_symlinks
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user