From d2977eee32d1493981b6d62931ae8effd78f9e98 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 19 May 2019 16:01:58 +0200 Subject: [PATCH] Add script to list repositories [ci skip] --- scripts/list.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/list.sh diff --git a/scripts/list.sh b/scripts/list.sh new file mode 100644 index 0000000..f9fa840 --- /dev/null +++ b/scripts/list.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env sh + +set -e + +DIR=${1:-repos} + +find "$DIR" -mindepth 3 -maxdepth 3 -type d \ + | sed -e "s/$DIR/https:\//g" \ + | sort