Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acme.sh does not set up scheduled tasks correctly when installed with git bash on windows. #5046

Open
EmptyDreams opened this issue Mar 8, 2024 · 1 comment

Comments

@EmptyDreams
Copy link

Steps to reproduce

The operating system I use is Windows 10.

When I clone the warehouse, the ID of the latest commit is 6e14a073ff1b6e08f3f62639cd19bbf79d9031b2.

  1. Clone code from github repository
  2. Run in git bash ./acme.sh --install command

At this time, acmesh will automatically create a scheduled task, but the content of the scheduled task is wrong.

Taking my computer as an example, the contents of the scheduled tasks set by acmesh are: C:\Program Files\Git\git-bash.exe -l -c "/c/Users/kmar/.acme.sh/acme.sh --cron --home /c/Users/kmar/.acme.sh " .

Because there is a space in the path of git bash, the Windows system will parse C:\Program into the path of the executable file, The correct writing method should use double quotation marks to wrap the path of the executable file.

This error causes the system to execute the task without finding the executable file.

Debug log

No log.

Copy link

github-actions bot commented Mar 8, 2024

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant