From 853ee776fd4e915b8d0505d3fa6517725a10cb0b Mon Sep 17 00:00:00 2001 From: Hermann von Westerholt <62615938+stewmehr@users.noreply.github.com> Date: Tue, 13 Jun 2023 09:06:03 +0200 Subject: [PATCH 1/2] Add path argument to `find` command (mandatory on macOS) --- qpass/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qpass/__init__.py b/qpass/__init__.py index 0829e84..73a5739 100644 --- a/qpass/__init__.py +++ b/qpass/__init__.py @@ -302,8 +302,8 @@ def entries(self): """A list of :class:`PasswordEntry` objects.""" timer = Timer() passwords = [] - logger.info("Scanning %s ..", format_path(self.directory)) - listing = self.context.capture("find", "-type", "f", "-name", "*.gpg", "-print0") + logger.info("Scanning %s ..", format_path(self.directory) + listing = self.context.capture("find", self.directory, "-type", "f", "-name", "*.gpg", "-print0") for filename in split(listing, "\0"): basename, extension = os.path.splitext(filename) if extension == ".gpg": From 1bab5d6b574b393355f54bed5b46ba4beccea80f Mon Sep 17 00:00:00 2001 From: Hermann von Westerholt <62615938+stewmehr@users.noreply.github.com> Date: Tue, 13 Jun 2023 09:09:52 +0200 Subject: [PATCH 2/2] Add closing parenthesis that somehow went missing ... --- qpass/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qpass/__init__.py b/qpass/__init__.py index 73a5739..64cb579 100644 --- a/qpass/__init__.py +++ b/qpass/__init__.py @@ -302,7 +302,7 @@ def entries(self): """A list of :class:`PasswordEntry` objects.""" timer = Timer() passwords = [] - logger.info("Scanning %s ..", format_path(self.directory) + logger.info("Scanning %s ..", format_path(self.directory)) listing = self.context.capture("find", self.directory, "-type", "f", "-name", "*.gpg", "-print0") for filename in split(listing, "\0"): basename, extension = os.path.splitext(filename)