Only run DISM for Win8+
* Avoids pausing the script for "Unsupported OS" "errors"
This commit is contained in:
parent
dab3bb5f68
commit
e7c519f605
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ if __name__ == '__main__':
|
||||||
result = try_and_print(message='SFC scan...',
|
result = try_and_print(message='SFC scan...',
|
||||||
function=run_sfc_scan, other_results=other_results)
|
function=run_sfc_scan, other_results=other_results)
|
||||||
system_ok &= check_result(result, other_results)
|
system_ok &= check_result(result, other_results)
|
||||||
if D7_MODE:
|
if D7_MODE and global_vars['OS']['Version'] in ('8', '8.1', '10'):
|
||||||
result = try_and_print(message='DISM RestoreHealth...',
|
result = try_and_print(message='DISM RestoreHealth...',
|
||||||
function=run_dism, other_results=other_results, repair=True)
|
function=run_dism, other_results=other_results, repair=True)
|
||||||
system_ok &= check_result(result, other_results)
|
system_ok &= check_result(result, other_results)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue