diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-10-09 11:58:57 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-10-09 11:58:57 +0200 |
commit | dc4521ddf3d02b42daf420cc7fec76413785db79 (patch) | |
tree | 48ed7ad29b7065cfa6ea07aa102dd67bc0ba0dff /src/password-store.sh | |
parent | bd0f5141865a8fbe9e4caca7d7ecd3d3007d5221 (diff) | |
download | pass-dc4521ddf3d02b42daf420cc7fec76413785db79.tar.gz pass-dc4521ddf3d02b42daf420cc7fec76413785db79.tar.bz2 pass-dc4521ddf3d02b42daf420cc7fec76413785db79.zip |
Restore exclusivity of options in multiline/echo check.
Diffstat (limited to 'src/password-store.sh')
-rwxr-xr-x | src/password-store.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh index 55ed86e..eabbb50 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -244,7 +244,7 @@ case "$command" in --) shift; break ;; esac done - if [[ $err -ne 0 || $# -ne 1 ]]; then + if [[ $err -ne 0 || ( $multiline -eq 1 && $noecho -eq 0 ) || $# -ne 1 ]]; then echo "Usage: $program $command [--echo,-e | --multiline,-m] [--force,-f] pass-name" exit 1 fi |