Skip to content
This repository was archived by the owner on Nov 7, 2024. It is now read-only.

Commit eab5dc3

Browse files
- Fixed minor bug where Initialization wouldn't properly return true/false on 1st run due to not nulling New-Item directory creation
1 parent efdcdff commit eab5dc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Windows-Samples/Tools & Utilities/AirWatch GPO Migration/Migrate-GPO-AirWatch.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,12 +655,12 @@ function Initialize {
655655

656656
# Ensure backup folder exists, create if needed
657657
if (!(Test-Path -Path $backupFolder)) {
658-
New-Item -Path $backupFolder -ItemType Directory
658+
New-Item -Path $backupFolder -ItemType Directory | Out-Null
659659
}
660660

661661
# Ensure upload folder exists, create if needed
662662
if (!(Test-Path -Path $uploadFolder)) {
663-
New-Item -Path $uploadFolder -ItemType Directory
663+
New-Item -Path $uploadFolder -ItemType Directory | Out-Null
664664
}
665665

666666
# Ensure LGPO.exe exists, instruct to download and place file in project if missing

0 commit comments

Comments
 (0)