include echo functions that don't print when quiet arg is passed

This commit is contained in:
Michael Hobbs
2015-02-05 12:38:59 -08:00
parent 6ad65dd9b4
commit 371ba99540
4 changed files with 19 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ source "$(dirname $0)/../common/functions"
case "$1" in
apps)
[[ -z "$DOKKU_QUIET_OUTPUT" ]] && info2 "My Apps"
info2 "My Apps"
find $DOKKU_ROOT -follow -maxdepth 1 -type d \( ! -iname ".*" \) -not -path $DOKKU_ROOT/tls | sed 's|^\./||g' | sed 's|'$DOKKU_ROOT'\/||' | tail -n +2 | sort
;;

View File

@@ -17,6 +17,22 @@ function info2() {
echo "=====> $@"
}
function info1_quiet() {
if [[ -z "$DOKKU_QUIET_OUTPUT" ]];then
echo "-----> $@"
else
return 0
fi
}
function info2_quiet() {
if [[ -z "$DOKKU_QUIET_OUTPUT" ]];then
echo "=====> $@"
else
return 0
fi
}
function verbose() {
echo " $@"
}

View File

@@ -65,7 +65,7 @@ case "$1" in
fi
done
[[ -z "$DOKKU_QUIET_OUTPUT" ]] && info2 "$APP config vars"
info2 "$APP config vars"
config_styled_hash "$VARS"
;;

View File

@@ -24,7 +24,7 @@ case "$1" in
APP="$2"
dokku domains:setup $APP
[[ -z "$DOKKU_QUIET_OUTPUT" ]] && info2 "$APP Domain Names"
info2 "$APP Domain Names"
cat "$DOKKU_ROOT/$APP/VHOST"
;;