Copy permissions from template files
This fixes missing executable permissions in bin/ scripts.
This commit is contained in:
parent
62464988e7
commit
0d0832c4ff
1 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,9 @@ def main():
|
|||
with open(output_path, 'w+') as output_file:
|
||||
output_file.write(output)
|
||||
|
||||
# Copy permissions from original file
|
||||
output_path.chmod(template_path.stat().st_mode & 0x777)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Add table
Reference in a new issue