From 5a177aad36b89e4d712cfb6f77d2ee24b04c4e09 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 29 Dec 2015 11:29:46 +0800 Subject: [PATCH] opps --- le.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/le.sh b/le.sh index 23afae3d..d6155e8a 100755 --- a/le.sh +++ b/le.sh @@ -125,13 +125,8 @@ createCSR() { } _b64() { - while read __line; do - __n=$__n$__line - done; - __n=$(echo $__n | sed "s|/|_|g") - __n=$(echo $__n | sed "s|+|-|g") - __n=$(echo $__n | sed "s|=||g") - echo $__n + __n=$(cat) + echo $__n | tr '/+' '_-' | tr -d '= ' } _send_signed_request() {