Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster committed Mar 22, 2022
1 parent 666e836 commit 5ae98e9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,7 @@ function test_running_process($app, $global) {
}
}

# test if this script is being executed inside a docker container
function Test-IsInsideContainer {
$foundService = Get-Service -Name cexecsvc -ErrorAction SilentlyContinue
if ( $foundService -eq $null ) {
Expand All @@ -1271,8 +1272,9 @@ function Test-IsInsideContainer {
}
}

# wrapper function to create junction links
# Required to handle docker/for-win#12240
function New-DirectoryJunction($source, $target) {

if (Test-Path $target) {
warn "Target directory `$target` already exists."
return $false
Expand All @@ -1283,5 +1285,5 @@ function New-DirectoryJunction($source, $target) {
} else {
New-Item -Path $source -ItemType Junction -Value $target | Out-Null
}
}
}

0 comments on commit 5ae98e9

Please sign in to comment.