Skip to content

Commit

Permalink
fix choco update
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrlaczykowski committed Jun 7, 2024
1 parent 85254e1 commit c44eb16
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,9 @@ def choco_upgrade():
if not is_choco_installed():
print("Chocolatey (choco) is not installed. Installing it now...")
install_choco()
try:
subprocess.run(["choco", "upgrade", "all", "-y"], check=True)
print("All Chocolatey packages upgraded successfully.")
except subprocess.CalledProcessError as e:
print(f"Error upgrading Chocolatey packages: {e}")
upgrade_choco_packages()
else:
upgrade_choco_packages()

def windows_update():
try:
Expand Down

0 comments on commit c44eb16

Please sign in to comment.