m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
parentbd0f5141865a8fbe9e4caca7d7ecd3d3007d5221 (diff)
Restore exclusivity of options in multiline/echo check.
Diffstat (limited to 'src')
-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