Skip to content

Commit

Permalink
util: android setup add pkg --check-mirror
Browse files Browse the repository at this point in the history
this is what {termux}/scripts/termux-change-repo.in does at the end
  • Loading branch information
kralo committed Jan 27, 2024
1 parent 6e09cba commit 58995fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/android-commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ init() {
termux="$3"

# shellcheck disable=SC2015
wget "https://github.com/termux/termux-app/releases/download/${termux}/termux-app_${termux}+github-debug_${arch}.apk" &&
wget -nv "https://github.com/termux/termux-app/releases/download/${termux}/termux-app_${termux}+github-debug_${arch}.apk" &&
snapshot "termux-app_${termux}+github-debug_${arch}.apk" &&
hash_rustc &&
exit_termux &&
Expand All @@ -202,7 +202,7 @@ snapshot() {

echo "Prepare and install system packages"
probe='/sdcard/pkg.probe'
command="'mkdir -vp ~/.cargo/bin; yes | pkg install rust binutils openssl tar -y; echo \$? > $probe'"
command="'mkdir -vp ~/.cargo/bin; ls -ltrh /data/data/com.termux/files/usr/etc/ ; cat /data/data/com.termux/files/usr/etc/apt/sources.list; which termux-change-repo ; yes | pkg update; yes | pkg install rust binutils openssl tar -y; echo \$? > $probe'"

Check failure on line 205 in util/android-commands.sh

View workflow job for this annotation

GitHub Actions / Style/spelling (ubuntu-latest, feat_os_unix)

ERROR: Unknown word (ltrh) (file:'util/android-commands.sh', line:205)
run_termux_command "$command" "$probe" || return

echo "Installing cargo-nextest"
Expand Down

0 comments on commit 58995fa

Please sign in to comment.