From a0245017f732d881fb8552be7707be81cca0d6b0 Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Wed, 15 Jan 2025 13:40:49 +0100 Subject: [PATCH] refactor setup script to use a variable for continuation flag handling --- setup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 275f9fa..2222cb5 100755 --- a/setup.sh +++ b/setup.sh @@ -455,7 +455,8 @@ main() { git clone "$GIT_REPO" "$DOTFILES_DIR" || die "Failed to clone dotfiles repository" fi - if [ "$1" = "--continue" ]; then + CONTINUE=$1 + if [ "$CONTINUE" = "--continue" ]; then log_info "Continuing setup..." else warning_prompt @@ -463,7 +464,7 @@ main() { check_selinux install_nix fi - + install_home_manager setup_symlinks