#! /usr/bin/env bash set -eu # shellcheck disable=SC1091 . /etc/portage/make.conf PORTDIR="${PORTDIR:-/usr/portage}" for f in */*; do [ ! -d "$f" ] && continue [ "$f" = "profiles/updates" ] && continue if [ -d "${PORTDIR}/$f" ]; then echo ">>> $f found in ::gentoo" fi done