From 38e6a5cc729c1a0f11a2f44a2627f12ad1879436 Mon Sep 17 00:00:00 2001 From: Vincent A Date: Sat, 13 Mar 2021 19:22:20 +0100 Subject: [PATCH] contrib/replace-backends-pass.py: woob rename --- contrib/replace-backends-pass.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/replace-backends-pass.py b/contrib/replace-backends-pass.py index 0671da9403..7b4ff4eaab 100755 --- a/contrib/replace-backends-pass.py +++ b/contrib/replace-backends-pass.py @@ -15,7 +15,7 @@ _module = bnporc website = pp login = 123456 -password = `pass show weboob/bnporc21/password` +password = `pass show woob/bnporc21/password` """ from __future__ import print_function @@ -29,7 +29,7 @@ SECRET_KEYWORDS = ('password', 'secret') -FILE = os.getenv('WEBOOB_BACKENDS') or os.path.expanduser('~/.config/weboob/backends') +FILE = os.getenv('WOOB_BACKENDS') or os.path.expanduser('~/.config/woob/backends') if not os.path.exists(FILE): print('the backends file does not exist') @@ -54,12 +54,12 @@ mtc = re.match(regex, line) if mtc and not mtc.group(2).startswith('`'): - cmd = ['pass', 'insert', 'weboob/%s/%s' % (backend, mtc.group(1))] + cmd = ['pass', 'insert', 'woob/%s/%s' % (backend, mtc.group(1))] stdin = 2 * ('%s\n' % mtc.group(2)) proc = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE) proc.communicate(stdin.encode('utf-8')) if proc.returncode == 0: - print('%s = `pass show weboob/%s/%s`' % (mtc.group(1), backend, mtc.group(1)), file=outp) + print('%s = `pass show woob/%s/%s`' % (mtc.group(1), backend, mtc.group(1)), file=outp) continue else: errors += 1 -- GitLab