Skip to content

Commit

Permalink
update win_update
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlivio committed Nov 14, 2024
1 parent df8ddde commit 7cd46eb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions os_win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ function win_update() {
log_msg "> winget upgrade"
winget upgrade --accept-package-agreements --accept-source-agreements --silent --scope user --all
log_msg "> os upgrade"
if (Test-IsNotAdmin) {
log_msg "no sudo for os upgrade. you can update manually from Settings app."
return
}
if (Test-IsNotAdmin) { log_msg "no sudo for os upgrade. you can do manually from Settings app."; return }
sudo {
# https://gist.github.com/billpieper/a39173afa0b343a14ddeeb1d79ab14ea
if (-Not(Get-Command Install-WindowsUpdate -errorAction SilentlyContinue)) {
Expand Down Expand Up @@ -79,7 +76,7 @@ function win_install_miktex() {
}
}

function win_install_vlc(){
function win_install_vlc() {
$version = "3.0.21"
$url = "https://www.mirrorservice.org/sites/videolan.org/vlc/$version/win32/vlc-$version-win32.zip"
$installPath = "$env:LOCALAPPDATA\VLC"
Expand All @@ -103,7 +100,7 @@ function win_install_vlc(){
win_env_path_reload
}

function win_install_golang(){
function win_install_golang() {
$version = "1.23.3"
$url = "https://golang.org/dl/go$version.windows-amd64.zip"
$installPath = "$env:LOCALAPPDATA\Golang"
Expand Down

0 comments on commit 7cd46eb

Please sign in to comment.