Fix string syntax error in rebuild command
- Replace raw string with escaped string to fix compilation error - Maintain same functionality with proper string formatting
This commit is contained in:
parent
e4469a0ebf
commit
e18778e962
@ -246,18 +246,7 @@ impl TuiApp {
|
|||||||
if let Some(hostname) = self.current_host.clone() {
|
if let Some(hostname) = self.current_host.clone() {
|
||||||
// Create command that shows logo, rebuilds, and waits for user input
|
// Create command that shows logo, rebuilds, and waits for user input
|
||||||
let logo_and_rebuild = format!(
|
let logo_and_rebuild = format!(
|
||||||
r"bash -c 'cat << \"EOF\"
|
"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'",
|
||||||
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'",
|
|
||||||
hostname,
|
hostname,
|
||||||
self.config.ssh.rebuild_user,
|
self.config.ssh.rebuild_user,
|
||||||
hostname,
|
hostname,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user