From 689fc9909c2faabbbc7a0dd6489c485255fe3191 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Fri, 21 Feb 2020 22:11:30 +0100 Subject: [PATCH] Windows does not like "&" --- certbot-ci/windows_installer_integration_tests/test_main.py | 2 +- windows-installer/tasks-down.ps1 | 2 +- windows-installer/tasks-up.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/certbot-ci/windows_installer_integration_tests/test_main.py b/certbot-ci/windows_installer_integration_tests/test_main.py index 8defe8dac..12374f8aa 100644 --- a/certbot-ci/windows_installer_integration_tests/test_main.py +++ b/certbot-ci/windows_installer_integration_tests/test_main.py @@ -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 diff --git a/windows-installer/tasks-down.ps1 b/windows-installer/tasks-down.ps1 index e4ffc57eb..f749c9246 100644 --- a/windows-installer/tasks-down.ps1 +++ b/windows-installer/tasks-down.ps1 @@ -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 } diff --git a/windows-installer/tasks-up.ps1 b/windows-installer/tasks-up.ps1 index 2d1ad54f5..8917bedce 100644 --- a/windows-installer/tasks-up.ps1 +++ b/windows-installer/tasks-up.ps1 @@ -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"""