Skip to content

Commit

Permalink
Remove errant c from glob guards, add missing d
Browse files Browse the repository at this point in the history
Co-authored-by: Alan Morgan <[email protected]>
  • Loading branch information
biox and alanxoc3 committed Dec 28, 2022
1 parent 67a48b7 commit b32ce1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pa
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ main() {
cd "$PA_DIR" ||
die "Can't access password directory"

glob "$1" '[acdes]*' && [ -z "$2" ] &&
glob "$1" '[ades]*' && [ -z "$2" ] &&
die "Missing [name] argument"

glob "$1" '[cds]*' && [ ! -f "$2.age" ] &&
glob "$1" '[des]*' && [ ! -f "$2.age" ] &&
die "Pass file '$2' doesn't exist"

glob "$1" 'a*' && [ -f "$2.age" ] &&
Expand Down

0 comments on commit b32ce1a

Please sign in to comment.