From fdf90e043ac3a29aec151055b76ace94471b730f Mon Sep 17 00:00:00 2001 From: Randall Date: Sat, 8 Oct 2022 21:19:47 -0400 Subject: [PATCH] Overwrite old configuration file Former-commit-id: ca68d65edcb90d827ee8588d4c251e8bfb35fac6 [formerly 48170f494eb98fefc7b601fe119507ef4097c4d7] Former-commit-id: 68c2175fea457766e0c0f8d2fe5751fc2812dbe0 --- bin/sshyp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sshyp.py b/bin/sshyp.py index f50c995..ce7258b 100755 --- a/bin/sshyp.py +++ b/bin/sshyp.py @@ -319,7 +319,7 @@ def tweak(): # runs configuration wizard remove(path.expanduser('~/.config/sshyp/sshyp.sshync')) # write main config file (sshyp-data) - with open(path.expanduser('~/.config/sshyp/sshyp-data'), 'a') as _config_file: + with open(path.expanduser('~/.config/sshyp/sshyp-data'), 'w') as _config_file: _lines = 0 for _item in _sshyp_data: _lines += 1