Browse Source

Sync: 2026-04-19 14:27:51

Gabriel Capella 18 hours ago
parent
commit
fa75303a3f
1 changed files with 5 additions and 2 deletions
  1. 5 2
      start

+ 5 - 2
start

@@ -133,7 +133,8 @@ process_markers() {
     done < "$src"
 
     if [[ $in_block -eq 1 ]]; then
-        log_warn "Unclosed @host/@group block in $src"
+        log_error "Unclosed @host/@group block in $src"
+        return 1
     fi
 }
 
@@ -197,7 +198,7 @@ sub_sync(){
     # Get current branch
     current_branch=$(git branch --show-current)
     log_info "Pulling latest changes from $current_branch..."
-    git pull origin "$current_branch" || log_warn "Git pull failed, continuing anyway"
+    git pull origin "$current_branch"
     git submodule update --init --recursive
 
     # Parse flags for adding new dotfiles
@@ -366,6 +367,7 @@ sub_sync(){
                 log_info "Linked: $dest -> $src"
             else
                 log_error "Failed to create symlink for $(basename "$dest")"
+                return 1
             fi
         fi
     }
@@ -413,6 +415,7 @@ sub_sync(){
                     log_info "Linked: $destination -> $source"
                 else
                     log_error "Failed to create symlink for $p"
+                    exit 1
                 fi
             fi
         else