Repository: motioneye-project/motioneye (language: python)

Issue:
What shebang should motioneye/scripts/po2json have?
@jmichault It would be good to enable [`check-executables-have-shebangs`](https://github.com/pre-commit/pre-commit-hooks#check-executables-have-shebangs) in our pre-commit at https://github.com/motioneye-project/motioneye/blob/dev/.pre-commit-config.yaml#L6 but I am unsure the [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) should be for `motioneye/scripts/po2json`


Discussion / hints:
This is actually a shell script:
```sh
#!/bin/sh
```
The major part of the code is an `awk` script, but embedded in the shell pipe 😉.

Fix patch:
diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml
index 2558da309..7a911903f 100644
--- a/.github/workflows/make.yml
+++ b/.github/workflows/make.yml
@@ -2,7 +2,7 @@ name: make
 on: [pull_request, push]
 jobs:
   make:
-    if: ${{ github.event_name != 'pull_request' || !startsWith(github.action.repository, github.repository.owner) }}
+    if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 3396e7943..1a6265145 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -4,7 +4,7 @@ name: pre-commit
 on: [pull_request, push]
 jobs:
   pre-commit:
-    if: ${{ github.event_name != 'pull_request' || !startsWith(github.action.repository, github.repository.owner) }}
+    if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
diff --git a/.github/workflows/ubuntu_build.yml b/.github/workflows/ubuntu_build.yml
index 09398beb6..02885e45e 100644
--- a/.github/workflows/ubuntu_build.yml
+++ b/.github/workflows/ubuntu_build.yml
@@ -3,7 +3,7 @@ name: ubuntu_build
 on: [pull_request, push]
 jobs:
   ubuntu_build:
-    if: ${{ github.event_name != 'pull_request' || !startsWith(github.action.repository, github.repository.owner) }}
+    if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e2a91a67c..31f31997e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -3,7 +3,7 @@ repos:
     rev: v4.1.0
     hooks:
       - id: check-builtin-literals
-      # - id: check-executables-have-shebangs
+      - id: check-executables-have-shebangs
       - id: check-shebang-scripts-are-executable
       - id: check-yaml
       - id: detect-private-key
diff --git a/motioneye/scripts/po2json b/motioneye/scripts/po2json
index 4e9082649..2c9b8ea0c 100755
--- a/motioneye/scripts/po2json
+++ b/motioneye/scripts/po2json
@@ -1,3 +1,4 @@
+#!/bin/sh
 
 FICIN=$1
 FICOUT=$2


Test patch:
diff --git a/.github/workflows/test_python.yml b/.github/workflows/test_python.yml
index b4ee6740d..28f1d84c2 100644
--- a/.github/workflows/test_python.yml
+++ b/.github/workflows/test_python.yml
@@ -2,7 +2,7 @@ name: test_python
 on: [pull_request, push]
 jobs:
   test_python:
-    if: ${{ github.event_name != 'pull_request' || !startsWith(github.action.repository, github.repository.owner) }}
+    if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3