fix: do not attempt to access non-existent config entry
This commit is contained in:
parent
384e479625
commit
d492573916
1 changed files with 2 additions and 2 deletions
|
|
@ -138,10 +138,10 @@ def is_already_latest() -> bool:
|
||||||
json.dumps(system_config, ensure_ascii=False).strip()
|
json.dumps(system_config, ensure_ascii=False).strip()
|
||||||
== contents.strip()
|
== contents.strip()
|
||||||
):
|
):
|
||||||
if len(system_config["distro-config"]["needs-update"]) == 0:
|
if len(system_config["needs-update"]) == 0:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
for update_check in system_config["distro-config"]["needs-update"]:
|
for update_check in system_config["needs-update"]:
|
||||||
if (
|
if (
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
["bash", "-s"],
|
["bash", "-s"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue