From 025d367fd2082d69ded745d93b33ef34c054bfb9 Mon Sep 17 00:00:00 2001
From: David Stainton <dstainton415@gmail.com>
Date: Tue, 23 Jun 2015 11:32:47 -0700
Subject: [PATCH] Clean up join tahoe config append

---
 src/allmydata/scripts/magic_folder_cli.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/allmydata/scripts/magic_folder_cli.py b/src/allmydata/scripts/magic_folder_cli.py
index 08af3e25..127e431b 100644
--- a/src/allmydata/scripts/magic_folder_cli.py
+++ b/src/allmydata/scripts/magic_folder_cli.py
@@ -157,7 +157,7 @@ def join(options):
     fileutil.write(collective_readcap_file, magic_readonly_cap)
 
     c = open(os.path.join(options["node-directory"], "tahoe.cfg"), "a")
-    c.write("[magic_folder]\nenabled = True\n[magic_folder]\nlocal.directory = %s\n" % (options.local_dir,))
+    c.write("[magic_folder]\nenabled = True\nlocal.directory = %s\n" % (options.local_dir,))
     c.close()
 
 
-- 
2.45.2