From 14f3dbb71aa16cb0c61efc58695dfe09d4ca44c9 Mon Sep 17 00:00:00 2001 From: neil Date: Fri, 22 Apr 2016 20:50:43 +0800 Subject: [PATCH] minor, fix sed_i --- acme.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acme.sh b/acme.sh index 04af7860..dd3076b6 100755 --- a/acme.sh +++ b/acme.sh @@ -168,10 +168,10 @@ _sed_i() { _err "Usage:_sed_i options filename" return 1 fi - - if sed -h 2>&1 | grep "\-i[SUFFIX]" ; then + _debug2 options "$options" + if sed -h 2>&1 | grep "\-i\[SUFFIX]" >/dev/null 2>&1; then _debug "Using sed -i" - sed -i "" + sed -i "$options" "$filename" else _debug "No -i support in sed" text="$(cat $filename)"