17 lines
611 B
PowerShell
17 lines
611 B
PowerShell
<#
|
|
PowerShell wrapper to launch the WSL installer or show platform-specific instructions.
|
|
Usage: .\run_installers.ps1 [-Preview]
|
|
#>
|
|
param([switch]$Preview)
|
|
|
|
Write-Host "Running cross-platform installer helper"
|
|
if (Get-Command wsl -ErrorAction SilentlyContinue) {
|
|
if ($Preview) {
|
|
wsl bash -lc 'sed -n "1,120p" /mnt/d/SANDBOX/mygh/learning_ai_devops_tools/install_clis_wsl.sh'
|
|
} else {
|
|
wsl bash -ic "cd /mnt/d/SANDBOX/mygh/learning_ai_devops_tools && bash -i ./install_clis_wsl.sh"
|
|
}
|
|
} else {
|
|
Write-Host "WSL not found. Please run manually on the target platform according to README_INSTALL.md"
|
|
}
|