pashage

Yet Another Opinionated Re-engineering of the Unix Password Store
git clone https://git.instinctive.eu/pashage.git
Log | Files | Refs | README | LICENSE

commit dbacb9676253e8d36ddd457df444e15d87c22b5c
parent feab4850550c291c1aa9a4060b4512e8580320e5
Author: Natasha Kerensikova <natgh@instinctive.eu>
Date:   Sun, 27 Oct 2024 12:30:21 +0000

Pass-like rm -rf test is recorrected for other stores
Diffstat:
Mspec/pass_spec.sh | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/spec/pass_spec.sh b/spec/pass_spec.sh @@ -1632,8 +1632,13 @@ Describe 'Pass-like command' When run script $1 rm -rf fluff The status should be success The directory "${PREFIX}/fluff" should not be exist - expected_log() { %text:expand - #|Remove fluff/ from store. + expected_log() { + if [ $1 = pashage ]; then + %putsn 'Remove fluff/ from store.' + else + %putsn 'Remove fluff from store.' + fi + %text:expand #| #| fluff/.age-recipients | 2 -- #| fluff/.gpg-id | 2 -- @@ -1647,7 +1652,7 @@ Describe 'Pass-like command' setup_log } The result of function git_log should be successful - The contents of file "${GITLOG}" should equal "$(expected_log $3)" + The contents of file "${GITLOG}" should equal "$(expected_log $2)" End It 'removes a directory having an ambiguous name with `/` suffix'