Skip to content

Commit f3f6048

Browse files
committed
Use pre-configured sources.list for CI
1 parent 099c1ee commit f3f6048

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

metasploit.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@ source <(echo "c3Bpbm5lcj0oICd8JyAnLycgJy0nICdcJyApOwoKY291bnQoKXsKICBzcGluICYKI
3535

3636
# Dependencies Installation
3737
center "* Dependencies installation..."
38-
pkg update -y
39-
pkg upgrade -y -o Dpkg::Options::="--force-confnew"
38+
# Skip mirror selection if sources.list is already configured (for CI)
39+
if ! grep -q "packages.termux.dev" /data/data/com.termux/files/usr/etc/apt/sources.list 2>/dev/null; then
40+
pkg update -y
41+
else
42+
apt update -y
43+
fi
44+
DEBIAN_FRONTEND=noninteractive pkg upgrade -y -o Dpkg::Options::="--force-confnew"
4045
pkg install -y binutils python autoconf bison clang coreutils curl findutils apr apr-util postgresql openssl readline libffi libgmp libpcap libsqlite libgrpc libtool libxml2 libxslt ncurses make ncurses-utils ncurses git wget unzip zip tar termux-tools termux-elf-cleaner pkg-config git ruby -o Dpkg::Options::="--force-confnew"
4146
python3 -m pip install requests
4247

0 commit comments

Comments
 (0)