Skip to content

Apple's open-source XNU kernel on Android phones: its own loader and drivers, Metal on the Adreno. Runs from RAM; a reboot gives the phone back to Android.

C

ci: scripts with a shebang must be executable in git

shimokucccd3eb2388d
diff --git a/ci/github-check.yml b/ci/github-check.yml
index 7a7054e..af93be7 100644
--- a/ci/github-check.yml
+++ b/ci/github-check.yml
@@ -13,6 +13,11 @@ jobs:
- name: Shell scripts parse
run: |
git ls-files '*.sh' xl | xargs -r -n1 bash -n
+ - name: Scripts that start with #! are executable in git (a Windows commit with a pathspec records 644)
+ run: |
+ bad=$(git ls-files -s | awk '$1=="100644"{print $4}' | while read -r f; do
+ case "$f" in *.sh|*.py|xl) head -c2 "$f" | grep -q '^#!' && echo "$f";; esac; done)
+ if [ -n "$bad" ]; then echo "not executable in git (git update-index --chmod=+x):"; echo "$bad"; exit 1; fi
- name: Makefile help
run: make help
- name: Provenance - every binary and blob explained, nothing proprietary, nothing writes to the phone