Skip to content

Commit

Permalink
Fix review finding.
Browse files Browse the repository at this point in the history
Update ebcl/common/files.py

Co-authored-by: Jörg Vehlow <github@jv-coder.de>
  • Loading branch information
thir820 and MofX authored Nov 7, 2024
1 parent 7ba7cca commit 2ebffdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ebcl/common/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def copy_file(
if not mode and not move:
# Take over mode from source file.
mode = oct(os.stat(file).st_mode)
mode = mode[-3:]
mode = mode[-4:]

if mode:
self._run_cmd(f'chmod {mode} {target}', environment)
Expand Down

0 comments on commit 2ebffdf

Please sign in to comment.