Windows does not like "&"

This commit is contained in:
Adrien Ferrand 2020-02-21 22:11:30 +01:00
parent 067438f3c2
commit 689fc9909c
3 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ with warnings.catch_warnings():
warnings.simplefilter("ignore")
import pkg_resources
SCHEDULED_TASK_NAME = 'Certbot Renew & Auto-Update Task'
SCHEDULED_TASK_NAME = 'Certbot Renew and Auto-Update Task'
@pytest.fixture

View file

@ -1,4 +1,4 @@
$tasks = "Certbot Renew & Auto-Update Task", "Certbot Renew Task"
$tasks = "Certbot Renew and Auto-Update Task", "Certbot Renew Task"
foreach ($task in $tasks) {
$exists = Get-ScheduledTask | Where-Object { $_.TaskName -like $task }

View file

@ -8,7 +8,7 @@ function Get-ScriptDirectory { Split-Path $MyInvocation.ScriptName }
$down = Join-Path (Get-ScriptDirectory) 'tasks-down.ps1'
& $down
$taskName = "Certbot Renew & Auto-Update Task"
$taskName = "Certbot Renew and Auto-Update Task"
$taskDescription = "Execute twice a day the 'certbot renew' command, to renew managed certificates if needed, and upgrade Certbot is a new version is available."
$actionRenew = New-ScheduledTaskAction -Execute 'Powershell.exe' -Argument "-NoProfile -WindowStyle Hidden -Command ""& '$InstallDir\bin\certbot.exe' renew"""