better logic in enumerate_blackbox_repos
This commit is contained in:
@@ -309,14 +309,15 @@ function change_to_vcs_root() {
|
|||||||
function enumerate_blackbox_repos() {
|
function enumerate_blackbox_repos() {
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo "enumerate_blackbox_repos: ERROR: No Repo provided to Enumerate"
|
echo "enumerate_blackbox_repos: ERROR: No Repo provided to Enumerate"
|
||||||
else
|
exit 1
|
||||||
# https://github.com/koalaman/shellcheck/wiki/Sc2045
|
|
||||||
for dir in $1*/; do
|
|
||||||
if is_blackbox_repo "$dir"; then
|
|
||||||
echo "$dir"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# https://github.com/koalaman/shellcheck/wiki/Sc2045
|
||||||
|
for dir in $1*/; do
|
||||||
|
if is_blackbox_repo "$dir"; then
|
||||||
|
echo "$dir"
|
||||||
|
fi
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# Output the path of a file relative to the repo base
|
# Output the path of a file relative to the repo base
|
||||||
|
|||||||
Reference in New Issue
Block a user