Use -split operator to avoid error from new overload (#2796)
This commit is contained in:
parent
f971cd3dfe
commit
7015e66bae
|
@ -35,7 +35,7 @@ function Get-CronTab ([String] $user) {
|
|||
}
|
||||
|
||||
function ConvertTo-CronJob ([String] $crontab) {
|
||||
$split = $crontab.split(" ", 6)
|
||||
$split = $crontab -split " ", 6
|
||||
$cronjob = [CronJob]@{
|
||||
Minute = $split[0];
|
||||
Hour = $split[1];
|
||||
|
|
Loading…
Reference in a new issue