CodeStandard/PublishConceptPortal.ps1
2024-06-07 20:00:25 +03:00

13 lines
301 B
PowerShell

$tmp = "gitTemp"
$source = "Concept-Web"
$destination = "ConceptPortal"
if (Test-Path -Path $tmp) {
Remove-Item $tmp -Recurse -Force
}
Remove-Item -recurse $destination\* -exclude .git
& git clone $source $tmp
Copy-Item $tmp\* $destination\ -Recurse -Exclude .git
Remove-Item $tmp\ -Recurse -Force