Skip to content

Commit

Permalink
create iotedge directory before calling expand-archive (#155)
Browse files Browse the repository at this point in the history
* make the iotedge directory

* use invoke-native to prevent outputting to stdout
  • Loading branch information
veyalla authored Aug 15, 2018
1 parent 2679624 commit 7f1559c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/windows/setup/IotEdgeSecurityDaemon.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ function Get-SecurityDaemon {
Copy-Item "$ArchivePath\*" "C:\ProgramData\iotedge" -Force
}
else {
Invoke-Native "mkdir C:\ProgramData\iotedge"
Expand-Archive $ArchivePath "C:\ProgramData\iotedge" -Force
Copy-Item "C:\ProgramData\iotedge\iotedged-windows\*" "C:\ProgramData\iotedge" -Force
}
Expand Down

0 comments on commit 7f1559c

Please sign in to comment.