Skip to content

Commit

Permalink
Fixes escaping of spaces in script path of scheduled task
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljoos committed Jan 31, 2019
1 parent ff73c13 commit 98cbab9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ into account for the mapping between AD users and TeamViewer users.

## Changelog

### [1.2.2]
- Fixed escaping of spaces in script path of scheduled task.

### [1.2.1]
- Fixed handling of trailing whitespace in secondary email addresses.
- Fixed possible timeouts in update/deactivate user calls to the
Expand Down
2 changes: 1 addition & 1 deletion TeamViewerADConnector/Internal/ScheduledSync.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function Get-ScheduledSyncLogDirectory($task) {

function Install-ScheduledSync([TimeSpan] $interval, [string] $logdirectory) {
if (!(Get-ScheduledSync)) {
$command = $scheduledTaskCommand
$command = $scheduledTaskCommand -Replace ' ','` '
if ($logdirectory) {
$command = "$($command) -LogfileDirectory '$logdirectory'"
}
Expand Down

0 comments on commit 98cbab9

Please sign in to comment.