mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-22 10:42:31 +00:00
Update repo
This commit is contained in:
@@ -12,8 +12,9 @@ termux_step_setup_cgct_environment() {
|
||||
local PKG_DIR_SPLIT=(${PKG_DIR//// })
|
||||
|
||||
local REPO_NAME=""
|
||||
for idx in ${!TERMUX_PACKAGES_DIRECTORIES[@]}; do
|
||||
if [ "${TERMUX_PACKAGES_DIRECTORIES[$idx]}" = "${PKG_DIR_SPLIT[-3]}" ]; then
|
||||
local LIST_PACKAGES_DIRECTORIES=(${TERMUX_PACKAGES_DIRECTORIES})
|
||||
for idx in ${!LIST_PACKAGES_DIRECTORIES[@]}; do
|
||||
if [ "${LIST_PACKAGES_DIRECTORIES[$idx]}" = "${PKG_DIR_SPLIT[-3]}" ]; then
|
||||
REPO_NAME=$(echo "${TERMUX_REPO_URL[$idx]}" | sed -e 's%https://%%g' -e 's%http://%%g' -e 's%/%-%g')
|
||||
if [ "$TERMUX_REPO_PKG_FORMAT" = "debian" ]; then
|
||||
REPO_NAME+="-${TERMUX_REPO_DISTRIBUTION[$idx]}-Release"
|
||||
|
||||
Reference in New Issue
Block a user