summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-10-09 11:58:57 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-10-09 11:58:57 +0200
commitdc4521ddf3d02b42daf420cc7fec76413785db79 (patch)
tree48ed7ad29b7065cfa6ea07aa102dd67bc0ba0dff
parentbd0f5141865a8fbe9e4caca7d7ecd3d3007d5221 (diff)
downloadpass-dc4521ddf3d02b42daf420cc7fec76413785db79.tar.gz
pass-dc4521ddf3d02b42daf420cc7fec76413785db79.tar.bz2
pass-dc4521ddf3d02b42daf420cc7fec76413785db79.zip
Restore exclusivity of options in multiline/echo check.
Diffstat (limited to '')
-rwxr-xr-xsrc/password-store.sh2
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