This commit is contained in:
1 parent
4dfec83063
commit
0274e7b398
24 files changed
+60
-34
No files matched your search
+1
-1
@@ -40,5 +40,5 @@ if($Mode -eq 'Apply'){
|
||||
}
|
||||
if(-not $Journal){throw "$Mode requires -Journal."}
|
||||
$saved=Get-Content -LiteralPath $Journal -Raw|ConvertFrom-Json
|
||||
$save={param($x) Save-WindJournal -Journal $x -Path $Journal}.GetNewClosure()
|
||||
$journalWriter=Get-Command Save-WindJournal -CommandType Function;$save={param($x)& $journalWriter -Journal $x -Path $Journal}.GetNewClosure()
|
||||
if($Mode-eq'Confirm'){Confirm-WindNetwork -Journal $saved -Save $save|Format-List}else{Restore-WindNetwork -Journal $saved -Save $save|Format-List}
|
||||
Reference in new issue
Block a user