From 0d2c26735e98d71261fbeff836fb176c791920bd Mon Sep 17 00:00:00 2001 From: neilpang Date: Sat, 29 Oct 2016 21:33:34 +0800 Subject: [PATCH] minor --- acme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index eaecba18..0575e0b6 100755 --- a/acme.sh +++ b/acme.sh @@ -2073,7 +2073,7 @@ registeraccount() { } __calcAccountKeyHash() { - cat "$ACCOUNT_KEY_PATH" | _digest sha256 + [ -f "$ACCOUNT_KEY_PATH" ] && cat "$ACCOUNT_KEY_PATH" | _digest sha256 } _regAccount() {