mirror of
https://github.com/kforney/pentest-distro-builder.git
synced 2024-11-28 19:25:25 -07:00
13 lines
463 B
PowerShell
13 lines
463 B
PowerShell
param ( [string]$target )
|
|
if ( ! (test-path ${target} ) ) {
|
|
new-item -type directory ${target}
|
|
}
|
|
else {
|
|
if ( test-path -pathtype leaf ${target} ) {
|
|
remove-item -force ${target}
|
|
new-item -type directory ${target}
|
|
}
|
|
}
|
|
push-location C:/vscode-powershell
|
|
Invoke-Build GetExtensionVersion,Clean,Build,Test,Package
|
|
Copy-Item -Verbose -Recurse "C:/vscode-powershell/PowerShell-insiders.vsix" "${target}/PowerShell-insiders.vsix"
|