better logic in enumerate_blackbox_repos

This commit is contained in:
Dan OBoyle
2015-07-03 17:50:00 -04:00
parent 96c71e3254
commit 76884eb396

View File

@@ -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