diff options
Diffstat (limited to 'bin/app-ls-apps')
-rwxr-xr-x | bin/app-ls-apps | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/bin/app-ls-apps b/bin/app-ls-apps new file mode 100755 index 0000000..4adc274 --- /dev/null +++ b/bin/app-ls-apps @@ -0,0 +1,27 @@ +#!/bin/bash + +set -e +set -u + +APPSH_HOME=$(cd $(dirname "$0")/.. && pwd) + +. $APPSH_HOME/lib/common +# HEADER END + +usage_text() { + echo "usage: $usage_app [dir]" +} + +case $# in + 0) + dir=* + ;; + 1) + dir="$1/*"; shift + ;; + *) + usage + ;; +esac + +find $dir -type d -name .app | sed "s,/\.app$,," |