Skip to content

Commit d64bba4

Browse files
committed
Fail with error when an empty password is provided to the -p or --password options #188
1 parent 2607610 commit d64bba4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ system, you must also run the `--upgrade` command in each repository:
3838

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

4244
## [2.3.0] - 2024-09-10
4345

transcrypt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,10 +1402,12 @@ while [[ "${1:-}" != '' ]]; do
14021402
;;
14031403
-p | --password)
14041404
password=$2
1405+
[[ $password ]] || die 1 'empty password'
14051406
shift
14061407
;;
14071408
--password=*)
14081409
password=${1#*=}
1410+
[[ $password ]] || die 1 'empty password'
14091411
;;
14101412
-C | --context)
14111413
context=$2

0 commit comments

Comments
 (0)