Skip to content

Commit

Permalink
Initialise 02- and 03-main repos
Browse files Browse the repository at this point in the history
  • Loading branch information
philclifford committed Feb 9, 2024
1 parent 7d76ee3 commit e6a22d5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion deb-get
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,12 @@ function init_repos() {
if [ ! -e "${ETC_DIR}/01-main.repo" ]; then
${ELEVATE} tee "${ETC_DIR}/01-main.repo" <<<"${MAIN_REPO_URL}" >/dev/null
fi
if [ ! -e "${ETC_DIR}/02-main.repo" ]; then
${ELEVATE} sed 's/01/02/' "${ETC_DIR}/01-main.repo" > "${ETC_DIR}/02-main.repo"
fi
if [ ! -e "${ETC_DIR}/03-main.repo" ]; then
${ELEVATE} sed 's/01/03/' "${ETC_DIR}/01-main.repo" > "${ETC_DIR}/03-main.repo"
fi

for REPO in $(find "${ETC_DIR}" -maxdepth 1 -name "*.repo" ! -name 00-builtin.repo ! -name 99-local.repo -type f -printf "%f\n" | sed "s/.repo$//"); do
if [ ! -e "${ETC_DIR}/${REPO}.d" ]; then
Expand Down Expand Up @@ -1526,7 +1532,7 @@ fi

export CACHE_DIR="/var/cache/deb-get"
readonly ETC_DIR="/etc/deb-get"
readonly MAIN_REPO_URL="https://raw.githubusercontent.com/wimpysworld/deb-get/main/01-main"
readonly MAIN_REPO_URL="https://raw.githubusercontent.com/philclifford/deb-get/split_github_repos/01-main"

readonly USER_AGENT="Mozilla/5.0 (X11; Linux ${HOST_CPU}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
readonly USER_HOME="${HOME}"
Expand Down

0 comments on commit e6a22d5

Please sign in to comment.