From 6e424770a97ea63107c3e7362bc6710ec20c8e1f Mon Sep 17 00:00:00 2001 From: Nolan Woods Date: Mon, 21 Jun 2021 16:00:21 -0700 Subject: [PATCH] Add support for restricting the search for tools to a subpath repositories*.list can optionally have a path relative to the repo root follow the repo url separated by a space. This path will restrict the search for tools to only that subpath. The path must begin with a `/`. --- monitor.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor.sh b/monitor.sh index 6ea7d01..b5695a6 100755 --- a/monitor.sh +++ b/monitor.sh @@ -13,10 +13,10 @@ fi planemo conda_init -sort -R $1 | while read repository +sort -R $1 | while read repository subpath do repo_dir=$(basename "$repository") git clone --depth=1 "$repository" "$repo_dir" - planemo container_register --force_push --recursive "$repo_dir" + planemo container_register --force_push --recursive "$repo_dir$subpath" rm -rf "$repo_dir" done