mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 20:54:34 +00:00
Handle no read perms on checksum file
This commit is contained in:
parent
cc85ab1e78
commit
1c9cc30ff3
|
@ -75,6 +75,12 @@ def _get_checksum_dict(file):
|
|||
with open(file, 'w') as f:
|
||||
json.dump(checksums, f)
|
||||
return checksums
|
||||
except PermissionError:
|
||||
print(
|
||||
f'{colorama.Fore.RED}PermissionError: {colorama.Fore.RESET}'
|
||||
'to run tamper-check you must have read access to checksum file: '
|
||||
f"'{colorama.Fore.BLUE}{file}{colorama.Fore.RESET}' (forgot sudo?)"
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue