Skip to content

Commit 96b8430

Browse files
authored
Fix bad variable name when checking for privacy-protected directories
1 parent e59d8b8 commit 96b8430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

installinstallmacos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def main():
510510
if os.path.expanduser("~") in current_dir:
511511
bad_dirs = ['Documents', 'Desktop', 'Downloads', 'Library']
512512
for bad_dir in bad_dirs:
513-
if bad_dir in os.path.split(this_dir):
513+
if bad_dir in os.path.split(current_dir):
514514
print('Running this script from %s may not work as expected. '
515515
'If this does not run as expected, please run again from '
516516
'somewhere else, such as /Users/Shared.'

0 commit comments

Comments
 (0)