[meld] Fix shebang normalisation to maintain script mode



commit 710972cf25b5b677f862e781b7e058ef828c3cd4
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Fri Aug 19 07:41:25 2022 +1000

    Fix shebang normalisation to maintain script mode

 meson_shebang_normalisation.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/meson_shebang_normalisation.py b/meson_shebang_normalisation.py
index 4cf18754..e126d8fb 100755
--- a/meson_shebang_normalisation.py
+++ b/meson_shebang_normalisation.py
@@ -15,6 +15,9 @@ def main():
     lines[0] = "".join(lines[0].split("env "))
     out_path.write_text("".join(lines))
 
+    stat = in_path.stat()
+    out_path.chmod(stat.st_mode)
+
 
 if __name__ == "__main__":
     main()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]