Merge pull request #114047 from Repiteo/ci/enforce-shebang

CI: Fix executable perms for various files
This commit is contained in:
Thaddeus Crews
2025-12-15 13:02:05 -06:00
18 changed files with 22 additions and 16 deletions
+7
View File
@@ -10,6 +10,13 @@ exclude: |
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
exclude: (SConstruct|SCsub)$ # SCons files use shebangs for syntax highlighting only.
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.7
hooks:
+1
View File
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
from __future__ import annotations
import fnmatch
Regular → Executable
View File
View File
View File
-2
View File
@@ -1,5 +1,3 @@
#!/usr/bin/env bash
# Bash completion for the Godot editor
# To use it, install this file in `/etc/bash_completion.d` then restart your shell.
# You can also `source` this file directly in your shell startup file.
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#!/usr/bin/env python3
import sys
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#!/usr/bin/env python3
import os
import sys
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#!/usr/bin/env python3
import glob
import os
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#!/usr/bin/env python3
import sys
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/env sh
set -uo pipefail
shopt -s globstar
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#!/usr/bin/env python3
import sys
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
if __name__ != "__main__":
raise SystemExit(f'Utility script "{__file__}" should not be used as a module!')
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
if [ ! -e "version.py" ]; then
echo "This script should be ran from the root folder of the Godot repository."
+2 -1
View File
@@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash
set -o pipefail
if [ ! -f "version.py" ]; then
Regular → Executable
View File
@@ -1,4 +1,5 @@
#!/usr/bin/python3
#!/usr/bin/env python3
from __future__ import annotations
import os
+1
View File
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
from __future__ import annotations
if __name__ != "__main__":