/
githubmirror
/
tpcc-postgres
Обзор
Документация
Войти
/
githubmirror
/
tpcc-postgres
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.devcontainer/scripts/initializeCommand.ps1
16 строк
606 B
Brian Kroth
devcontainer improvements (#260)
22 мар 2023, 20:17
Не верифицирован
22 мар 2023, 20:17
5551be1
Код
Авторство
О чём код?
# Requires -Version 3.0 # A script to prepare the build/run environment for the devcontainer. $ErrorActionPreference = 'Stop' # Make sure we're in the root of the repository. Set-Location "$PSScriptRoot/../../" # Make sure the .env file exists for the devcontainer to load. if (!(Test-Path -PathType Leaf '.env')) { Write-Host "Creating empty .env file for devcontainer." New-Item -ErrorAction SilentlyContinue -Type File -Name '.env' } # Attempt to pre-create the maven cache directory for bind mounting into the devcontainer. New-Item -ErrorAction SilentlyContinue -Type Directory -Name ~/.m2