Add support for symlinked directory paths and sort the output

This commit is contained in:
Jose Diaz-Gonzalez
2016-01-02 02:31:06 -05:00
parent 89d96dfee1
commit 40047f0f8b

View File

@@ -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
}