Skip to content

Commit

Permalink
Fail with error when an empty password is provided to the -p or --pas…
Browse files Browse the repository at this point in the history
…sword options #188
  • Loading branch information
jmurty committed Jan 4, 2025
1 parent 2607610 commit d64bba4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ system, you must also run the `--upgrade` command in each repository:

- Make --upgrade safer by failing fast if transcrypt config cannot be read
(#189)
- Fail with error when an empty password is provided to the -p or --password
options #188

## [2.3.0] - 2024-09-10

Expand Down
2 changes: 2 additions & 0 deletions transcrypt
Original file line number Diff line number Diff line change
Expand Up @@ -1402,10 +1402,12 @@ while [[ "${1:-}" != '' ]]; do
;;
-p | --password)
password=$2
[[ $password ]] || die 1 'empty password'
shift
;;
--password=*)
password=${1#*=}
[[ $password ]] || die 1 'empty password'
;;
-C | --context)
context=$2
Expand Down

0 comments on commit d64bba4

Please sign in to comment.