mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 22:51:39 +00:00
NO_DETECT_SH
This commit is contained in:
parent
e4f67c626a
commit
641989fdee
20
acme.sh
20
acme.sh
@ -1951,15 +1951,17 @@ install() {
|
|||||||
|
|
||||||
installcronjob
|
installcronjob
|
||||||
|
|
||||||
#Modify shebang
|
if [ -z "$NO_DETECT_SH" ] ; then
|
||||||
if _exists bash ; then
|
#Modify shebang
|
||||||
_info "Good, bash is installed, change the shebang to use bash as prefered."
|
if _exists bash ; then
|
||||||
_shebang='#!/usr/bin/env bash'
|
_info "Good, bash is installed, change the shebang to use bash as prefered."
|
||||||
_setShebang "$LE_WORKING_DIR/$PROJECT_ENTRY" "$_shebang"
|
_shebang='#!/usr/bin/env bash'
|
||||||
if [ -d "$LE_WORKING_DIR/dnsapi" ] ; then
|
_setShebang "$LE_WORKING_DIR/$PROJECT_ENTRY" "$_shebang"
|
||||||
for _apifile in $(ls "$LE_WORKING_DIR/dnsapi/"*.sh) ; do
|
if [ -d "$LE_WORKING_DIR/dnsapi" ] ; then
|
||||||
_setShebang "$_apifile" "$_shebang"
|
for _apifile in $(ls "$LE_WORKING_DIR/dnsapi/"*.sh) ; do
|
||||||
done
|
_setShebang "$_apifile" "$_shebang"
|
||||||
|
done
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user