find-apps.sh 373 B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. # ensure dir
  4. cd -P -- "$(dirname -- "$0")/.."
  5. find_app() {
  6. local appdir="$1"
  7. find "${appdir}" -mindepth 1 -maxdepth 1 -type d
  8. }
  9. find_app 'apps'
  10. find_app 'lib-ee'
  11. ## find directories in lib-extra
  12. find_app 'lib-extra'
  13. ## find symlinks in lib-extra
  14. find 'lib-extra' -mindepth 1 -maxdepth 1 -type l -exec test -e {} \; -print