mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 03:11:45 +00:00
bugfix: set location to dotfiles repo for admin processes
This commit is contained in:
parent
ff07ff7d17
commit
8c6dcd4590
@ -13,5 +13,5 @@ function ChocolateyInstall
|
|||||||
# Start admin process, import this script, run 'InstallPackages' function
|
# Start admin process, import this script, run 'InstallPackages' function
|
||||||
Start-Process powershell.exe -Verb RunAs -Wait `
|
Start-Process powershell.exe -Verb RunAs -Wait `
|
||||||
-ArgumentList "-ExecutionPolicy", "Bypass", `
|
-ArgumentList "-ExecutionPolicy", "Bypass", `
|
||||||
"-C", "Import-Module ./util/chocolatey.psm1; InstallPackages"
|
"-C", "cd $pwd; ipmo ./util/chocolatey.psm1; InstallPackages"
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ function WingetInstall
|
|||||||
# Start admin process, import this script, run 'InstallPackages' function
|
# Start admin process, import this script, run 'InstallPackages' function
|
||||||
Start-Process powershell.exe -Verb RunAs -Wait `
|
Start-Process powershell.exe -Verb RunAs -Wait `
|
||||||
-ArgumentList "-ExecutionPolicy", "Bypass", `
|
-ArgumentList "-ExecutionPolicy", "Bypass", `
|
||||||
"-C", "Import-Module ./util/winget.psm1; InstallWinget"
|
"-C", "cd $pwd; ipmo ./util/winget.psm1; InstallWinget"
|
||||||
}
|
}
|
||||||
|
|
||||||
winget.exe install -s winget --accept-source-agreements (Get-Content ./util/winget.list)
|
winget.exe install -s winget --accept-source-agreements (Get-Content ./util/winget.list)
|
||||||
|
@ -23,7 +23,7 @@ function WSLInstall
|
|||||||
# Start admin process, import this script, run 'InstallPackages' function
|
# Start admin process, import this script, run 'InstallPackages' function
|
||||||
Start-Process powershell.exe -Verb RunAs -Wait `
|
Start-Process powershell.exe -Verb RunAs -Wait `
|
||||||
-ArgumentList "-ExecutionPolicy", "Bypass", `
|
-ArgumentList "-ExecutionPolicy", "Bypass", `
|
||||||
"-C", "Import-Module ./util/wsl.psm1; InstallWSL"
|
"-C", "cd $pwd; ipmo ./util/wsl.psm1; InstallWSL"
|
||||||
}
|
}
|
||||||
wsl.exe --install -d Ubuntu
|
wsl.exe --install -d Ubuntu
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user