mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-18 10:16:37 +00:00
Fix bad variable name when checking for privacy-protected directories
This commit is contained in:
parent
e59d8b84cb
commit
96b8430d4a
@ -510,7 +510,7 @@ def main():
|
|||||||
if os.path.expanduser("~") in current_dir:
|
if os.path.expanduser("~") in current_dir:
|
||||||
bad_dirs = ['Documents', 'Desktop', 'Downloads', 'Library']
|
bad_dirs = ['Documents', 'Desktop', 'Downloads', 'Library']
|
||||||
for bad_dir in bad_dirs:
|
for bad_dir in bad_dirs:
|
||||||
if bad_dir in os.path.split(this_dir):
|
if bad_dir in os.path.split(current_dir):
|
||||||
print('Running this script from %s may not work as expected. '
|
print('Running this script from %s may not work as expected. '
|
||||||
'If this does not run as expected, please run again from '
|
'If this does not run as expected, please run again from '
|
||||||
'somewhere else, such as /Users/Shared.'
|
'somewhere else, such as /Users/Shared.'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user