powershell migration
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# --- init.ps1 ---
|
||||
# Переходим в папку скрипта
|
||||
Set-Location -Path $PSScriptRoot
|
||||
|
||||
# Определяем root аналогично %~dp0..\
|
||||
$root = Join-Path $PSScriptRoot ".."
|
||||
|
||||
# Подключаем vars.ps1
|
||||
$varsFile = Join-Path $root "settings\vars.ps1"
|
||||
if (Test-Path $varsFile) {
|
||||
. $varsFile # точка + пробел = source / импорт
|
||||
} else {
|
||||
Write-Warning "Vars file not found: $varsFile"
|
||||
}
|
||||
Reference in New Issue
Block a user