mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-25 02:41:45 +00:00
allow bypassing additional installation steps
This commit is contained in:
parent
eaf1e8e9f3
commit
8ed8d2d411
@ -11,8 +11,8 @@ function InstallWinget
|
||||
|
||||
function WingetInstall
|
||||
{
|
||||
$install = Read-Host "Install/Update WinGet now? [Y/n]"
|
||||
if ($install.ToLower() -ne 'n')
|
||||
$update = Read-Host "Install/Update WinGet now? [Y/n]"
|
||||
if ($update.ToLower() -ne 'n')
|
||||
{
|
||||
# Start admin process, import this script, run 'InstallPackages' function
|
||||
Start-Process powershell.exe -Verb RunAs -Wait `
|
||||
@ -20,5 +20,10 @@ function WingetInstall
|
||||
"-C", "cd $pwd; ipmo ./util/winget.psm1; InstallWinget"
|
||||
}
|
||||
|
||||
$install = Read-Host "Install WinGet Packages now? [Y/n]"
|
||||
if ($install.ToLower() -eq 'n')
|
||||
{ return
|
||||
}
|
||||
|
||||
winget.exe install -s winget --accept-source-agreements (Get-Content ./util/winget.list)
|
||||
}
|
||||
|
@ -17,14 +17,20 @@ function WSLInstall
|
||||
{ return
|
||||
}
|
||||
|
||||
$install = Read-Host "Install/Update WSL2 now? [Y/n]"
|
||||
if ($install.ToLower() -ne 'n')
|
||||
$update = Read-Host "Install/Update WSL2 now? [Y/n]"
|
||||
if ($update.ToLower() -ne 'n')
|
||||
{
|
||||
# Start admin process, import this script, run 'InstallPackages' function
|
||||
Start-Process powershell.exe -Verb RunAs -Wait `
|
||||
-ArgumentList "-ExecutionPolicy", "Bypass", `
|
||||
"-C", "cd $pwd; ipmo ./util/wsl.psm1; InstallWSL"
|
||||
}
|
||||
|
||||
$install = Read-Host "Install WSL Distribution now? [Y/n]"
|
||||
if ($install.ToLower() -eq 'n')
|
||||
{ return
|
||||
}
|
||||
|
||||
wsl.exe --install -d Ubuntu
|
||||
|
||||
# Add newly created user to sudoers group
|
||||
|
Loading…
Reference in New Issue
Block a user