Avoid trying to upgrade nothing
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
72bd76031d
commit
5ac4bad870
@ -126,7 +126,11 @@ class Unhacs:
|
|||||||
)
|
)
|
||||||
upgrade_packages.append(latest_package)
|
upgrade_packages.append(latest_package)
|
||||||
|
|
||||||
if input("Upgrade all packages? (y/N) ").lower() != "y":
|
if not upgrade_packages:
|
||||||
|
print("Nothing to upgrade")
|
||||||
|
return
|
||||||
|
|
||||||
|
if input("Upgrade all packages? (y/N) ").strip().lower() != "y":
|
||||||
return
|
return
|
||||||
|
|
||||||
for installed_package in upgrade_packages:
|
for installed_package in upgrade_packages:
|
||||||
|
Loading…
Reference in New Issue
Block a user