- Replace grep -qP with POSIX-compatible LC_ALL=C grep -q '[^[:print:]]' - Inline auth headers directly in curl calls (eliminate AUTH_HEADER variable) - Remove redundant sys.exit(1) from Python for-else (shell empty-check suffices) - Update top-of-file comment to match actual detection mechanism - Remove -L from Gitea download curl calls to prevent auth header forwarding on potential redirects (defense-in-depth)