From e18778e9627b316e4222e25081a7e3fab70b975c Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Thu, 30 Oct 2025 16:59:41 +0100 Subject: [PATCH] Fix string syntax error in rebuild command - Replace raw string with escaped string to fix compilation error - Maintain same functionality with proper string formatting --- dashboard/src/ui/mod.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/dashboard/src/ui/mod.rs b/dashboard/src/ui/mod.rs index 31c5247..3f3cb25 100644 --- a/dashboard/src/ui/mod.rs +++ b/dashboard/src/ui/mod.rs @@ -246,18 +246,7 @@ impl TuiApp { if let Some(hostname) = self.current_host.clone() { // Create command that shows logo, rebuilds, and waits for user input let logo_and_rebuild = format!( - r"bash -c 'cat << \"EOF\" -NixOS System Rebuild -Target: {} - -EOF -ssh -tt {}@{} \"bash -ic {}\" -echo -echo \"========================================\" -echo \"Rebuild completed. Press any key to close...\" -echo \"========================================\" -read -n 1 -s -exit'", + "bash -c 'cat << \"EOF\"\nNixOS System Rebuild\nTarget: {}\n\nEOF\nssh -tt {}@{} \"bash -ic {}\"\necho\necho \"========================================\"\necho \"Rebuild completed. Press any key to close...\"\necho \"========================================\"\nread -n 1 -s\nexit'", hostname, self.config.ssh.rebuild_user, hostname,