mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
28 lines
539 B
PowerShell
28 lines
539 B
PowerShell
<#
|
|
.SYNOPSIS
|
|
Symlinks ./node_modules/xterm to provided $XtermFolder.
|
|
#>
|
|
|
|
Param(
|
|
[Parameter(Mandatory=$True)]
|
|
$XtermFolder
|
|
)
|
|
|
|
$TargetFolder = "./node_modules/xterm"
|
|
|
|
if (Test-Path $TargetFolder -PathType Container)
|
|
{
|
|
Write-Host "Deleting $TargetFolder"
|
|
Remove-Item -Path $TargetFolder
|
|
}
|
|
|
|
if (Test-Path $XtermFolder -PathType Container)
|
|
{
|
|
Write-Host "Creating symlink $TargetFolder -> $XtermFolder"
|
|
New-Item -Path $TargetFolder -ItemType SymbolicLink -Value $XtermFolder
|
|
}
|
|
else
|
|
{
|
|
Write-Host "$XtermFolder is not a valid folder"
|
|
}
|