Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
run: |
sudo apt-get update -qq && sudo apt-get install -y shellcheck
# Termux scripts use a Termux shebang that shellcheck cannot resolve,
# so the shell dialect is named explicitly.
# so the shell dialect is named explicitly. --severity=warning keeps
# info/style notes from failing the build across shellcheck versions.
find . -name '*.sh' -not -path './.git/*' -print0 \
| xargs -0 -r shellcheck --shell=bash --external-sources
| xargs -0 -r shellcheck --shell=bash --severity=warning --external-sources
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ die() { printf 'error: %s\n' "$*" >&2; exit 1; }

# --- preflight -------------------------------------------------------------
# Fail early with a clear message rather than halfway through a package install.
[ -n "${PREFIX:-}" ] && [ -d "$PREFIX" ] || die "this must run inside Termux (\$PREFIX not set)"
if [ -z "${PREFIX:-}" ] || [ ! -d "$PREFIX" ]; then
die "this must run inside Termux (\$PREFIX not set)"
fi
case "$(uname -m)" in
aarch64|arm64) : ;;
*) die "built for aarch64 phones; this device is $(uname -m)" ;;
Expand Down
Loading