From 641989fdee337d108c8598762df291d61b0e9ee0 Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 18 Apr 2016 22:43:33 +0800 Subject: [PATCH] NO_DETECT_SH --- acme.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/acme.sh b/acme.sh index fbddc39..74536ec 100755 --- a/acme.sh +++ b/acme.sh @@ -1951,15 +1951,17 @@ install() { installcronjob - #Modify shebang - if _exists bash ; then - _info "Good, bash is installed, change the shebang to use bash as prefered." - _shebang='#!/usr/bin/env bash' - _setShebang "$LE_WORKING_DIR/$PROJECT_ENTRY" "$_shebang" - if [ -d "$LE_WORKING_DIR/dnsapi" ] ; then - for _apifile in $(ls "$LE_WORKING_DIR/dnsapi/"*.sh) ; do - _setShebang "$_apifile" "$_shebang" - done + if [ -z "$NO_DETECT_SH" ] ; then + #Modify shebang + if _exists bash ; then + _info "Good, bash is installed, change the shebang to use bash as prefered." + _shebang='#!/usr/bin/env bash' + _setShebang "$LE_WORKING_DIR/$PROJECT_ENTRY" "$_shebang" + if [ -d "$LE_WORKING_DIR/dnsapi" ] ; then + for _apifile in $(ls "$LE_WORKING_DIR/dnsapi/"*.sh) ; do + _setShebang "$_apifile" "$_shebang" + done + fi fi fi