Detects the current menu style setting from bash.bashrc.
()
| 2103 | if any(label == "bin/unzip" for label, _path in bootstrap_files): |
| 2104 | bootstrap += 'chmod 700 "$BOOT/bin/unzip"\n' |
| 2105 | checks = [] |
| 2106 | for name in archives: |
| 2107 | path = os.path.join(TERMUX_TRANSFER_DIR, name) |
| 2108 | checks.append((_transfer_sha256(path), name, os.path.getsize(path))) |
| 2109 | verify_lines = "\n".join( |
| 2110 | f"verify_archive {shlex.quote(digest)} {shlex.quote(name)} {size}" |
| 2111 | for digest, name, size in checks |
| 2112 | ) |
| 2113 | source_arch = shlex.quote(str(metadata.get("source_arch") or "")) |
| 2114 | source_prefix = shlex.quote(str(metadata.get("source_prefix") or TERMUX_TRANSFER_PREFIX)) |
| 2115 | source_sdk = shlex.quote(str(metadata.get("android_sdk") or "")) |
| 2116 | script = f"""#!/data/data/com.termux/files/usr/bin/bash |
| 2117 | set -eu |
| 2118 | umask 077 |
| 2119 | |
| 2120 | TRANSFER_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)" |
| 2121 | STAGE="$HOME/.termux_transfer_restore" |
| 2122 | BOOT="$STAGE/bootstrap" |
no outgoing calls
no test coverage detected