aboutsummaryrefslogtreecommitdiff
path: root/bin/app-ls-apps
diff options
context:
space:
mode:
Diffstat (limited to 'bin/app-ls-apps')
-rwxr-xr-xbin/app-ls-apps27
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$,,"