From 48923ebad55db03a2d9a2390ec57644a0420ca8f Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sun, 6 Jul 2025 10:43:52 +0000 Subject: [PATCH] Ouput files without .txt suffix --- src/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.go b/src/main.go index 03bb434..d40d846 100644 --- a/src/main.go +++ b/src/main.go @@ -129,7 +129,7 @@ func (rb *RouterBackup) BackupCommands(commands []string, outputDir string) erro return fmt.Errorf("failed to create directory %s: %v", outputDir, err) } - filename := fmt.Sprintf("%s.txt", rb.hostname) + filename := rb.hostname filepath := filepath.Join(outputDir, filename) // Truncate file at start