Something went wrong. Try again.
Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
543 B 22 lines
at master
1234567891011121314151617181920212223#!/bin/shhere=$(cd "$(dirname "$0")/.." && pwd)
wanted() { [ -f "$1/profile" ] || return 0 for p in $(echo "${TNGL_PROFILES:-}" | tr , ' '); do grep -qx "$p" "$1/profile" && return 0 done return 1}
if [ -n "${TNGL_SERVICES:-}" ]; then for s in $(echo "$TNGL_SERVICES" | tr , ' '); do [ -d "$here/services/$s" ] || { echo "no service $s in $here/services" >&2; exit 1; } echo "$s" doneelse for d in "$here"/services/*/; do s=$(basename "$d") [ -d "$d" ] && wanted "$d" && case "$s" in _*) ;; *) echo "$s" ;; esac donefi