Add XDG_REPOS_HOME variable

This commit is contained in:
Oliver Davies 2025-03-17 20:05:16 +00:00
parent b0c2021d92
commit 2343a739da
7 changed files with 11 additions and 9 deletions

View file

@ -3,7 +3,7 @@
set -o errexit
set -o nounset
cd "${REPOS}/traefik-development"
cd "${XDG_REPOS_DIR}/traefik-development"
docker compose up --detach
docker container ps

View file

@ -6,7 +6,7 @@
set -o errexit
set -o nounset
dirs=$(find "$REPOS" -mindepth 1 -maxdepth 2 -type d -name .git -not -path '*/*.old/*')
dirs=$(find "$XDG_REPOS_DIR" -mindepth 1 -maxdepth 2 -type d -name .git -not -path '*/*.old/*')
for dir in $dirs; do
repo_path="${dir%/.git}"