From 0d0832c4ff72aed9d32527e3ef18bc0a5876cf16 Mon Sep 17 00:00:00 2001 From: Adam Gausmann Date: Tue, 11 Apr 2023 13:58:20 -0500 Subject: [PATCH] Copy permissions from template files This fixes missing executable permissions in bin/ scripts. --- install.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.py b/install.py index 88245a2..8ec44ce 100755 --- a/install.py +++ b/install.py @@ -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()