autosign: operator precedence fix
This commit is contained in:
parent
ab545e189f
commit
1f8641508f
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ class Autosign:
|
|||
def check_or_create(dirname):
|
||||
path = getattr(self, dirname)
|
||||
if path.is_dir():
|
||||
if path.stat().st_mode & S_IWUSR|S_IRUSR != S_IWUSR|S_IRUSR:
|
||||
if path.stat().st_mode & (S_IWUSR|S_IRUSR) != (S_IWUSR|S_IRUSR):
|
||||
die(1, f'‘{path}’ is not read/write for this user!')
|
||||
elif path.exists():
|
||||
die(1, f'‘{path}’ is not a directory!')
|
||||
|
|
|
|||
Loading…
Reference in a new issue