mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 16:22:18 -04:00
Merge pull request #3021 from mgedmin/relax-hook-validation
Hook validation: skip leading spaces/newlines
This commit is contained in:
commit
4e46e325d1
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ def _validate_hook(shell_cmd, hook_name):
|
|||
:raises .errors.HookCommandNotFound: if the command is not found
|
||||
"""
|
||||
if shell_cmd:
|
||||
cmd = shell_cmd.partition(" ")[0]
|
||||
cmd = shell_cmd.split(None, 1)[0]
|
||||
if not _prog(cmd):
|
||||
path = os.environ["PATH"]
|
||||
msg = "Unable to find {2}-hook command {0} in the PATH.\n(PATH is {1})".format(
|
||||
|
|
|
|||
Loading…
Reference in a new issue