Skip to content

Commit

Permalink
Fix log message
Browse files Browse the repository at this point in the history
  • Loading branch information
anodos325 committed Sep 12, 2023
1 parent 37e9592 commit 9f9dc6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/freenas/usr/bin/truenas-developer-enable.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ def chmod_files():
break

if do_chmod:
print(f'{entry.path}: setting {oct(entry.stat().st_mode | EXECUTE_BITS)} on file.')
os.chmod(entry.path, entry.stat().st_mode | EXECUTE_BITS)
new_mode = stat.S_IMODE(entry.stat().st_mode | EXECUTE_BITS)
print(f'{entry.path}: setting {oct(new_mode)} on file.')
os.chmod(entry.path, new_mode)


if __name__ == '__main__':
Expand Down

0 comments on commit 9f9dc6d

Please sign in to comment.