From 40047f0f8bf01fded0845f80a2d6934882c91f97 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 2 Jan 2016 02:31:06 -0500 Subject: [PATCH] Add support for symlinked directory paths and sort the output --- plugins/common/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/common/functions b/plugins/common/functions index 8b18d18b5..9f216cfa2 100755 --- a/plugins/common/functions +++ b/plugins/common/functions @@ -10,7 +10,7 @@ has_tty() { } dokku_apps() { - local INSTALLED_APPS=$(find $DOKKU_ROOT -maxdepth 1 -mindepth 1 -type d ! -name 'tls' ! -name '.*' -printf "%f\n") || (dokku_log_fail "You haven't deployed any applications yet") + local INSTALLED_APPS=$(find $DOKKU_ROOT -follow -maxdepth 1 -mindepth 1 -type d ! -name 'tls' ! -name '.*' -printf "%f\n" | sort) || (dokku_log_fail "You haven't deployed any applications yet") [[ $INSTALLED_APPS ]] && echo $INSTALLED_APPS }