Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
694af4ae
Commit
694af4ae
authored
Feb 07, 2018
by
neilpang
Browse files
fix
https://github.com/Neilpang/acme.sh/issues/1234
parent
52b94516
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
694af4ae
...
@@ -5163,8 +5163,14 @@ install() {
...
@@ -5163,8 +5163,14 @@ install() {
if [ -z "$NO_DETECT_SH" ]; then
if [ -z "$NO_DETECT_SH" ]; then
#Modify shebang
#Modify shebang
if _exists bash; then
if _exists bash; then
_bash_path="$(bash -c "command -v bash 2>/dev/null")"
if [ -z "$_bash_path" ]; then
_bash_path="$(bash -c 'echo $SHELL')"
fi
fi
if [ "$_bash_path" ]; then
_info "Good, bash is found, so change the shebang to use bash as preferred."
_info "Good, bash is found, so change the shebang to use bash as preferred."
_shebang='#!'"$
(
bash
-c "command -v bash")
"
_shebang='#!'"$
_
bash
_path
"
_setShebang "$LE_WORKING_DIR/$PROJECT_ENTRY" "$_shebang"
_setShebang "$LE_WORKING_DIR/$PROJECT_ENTRY" "$_shebang"
for subf in $_SUB_FOLDERS; do
for subf in $_SUB_FOLDERS; do
if [ -d "$LE_WORKING_DIR/$subf" ]; then
if [ -d "$LE_WORKING_DIR/$subf" ]; then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment