Mercurial > hgrepos > hgweb.cgi > s4
changeset 144:f9e8504bb8f2
Abort if encode fails
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 05 Nov 2015 21:58:58 +0859 |
parents | d4abf37a5ea2 |
children | 3b34c52fa4f0 |
files | s4-funcs.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-funcs.sh Wed Oct 14 12:56:34 2015 +0859 +++ b/s4-funcs.sh Thu Nov 05 21:58:58 2015 +0859 @@ -688,7 +688,7 @@ salt=${salt%\$*} ;; esac echo -n '$4$'"$salt"'$' - echo "$salt$key" | encode + echo "$salt$key" | encode || exit 1 # Abort if fail to call encode ) hexize() { if [ -z "$hexize" ]; then