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

This commit is contained in:
Michael Hobbs committed 2015-02-05 12:38:59 -08:00
1 parent 6ad65dd9b4
commit 371ba99540
4 files changed
+19 -3

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ source "$(dirname $0)/../common/functions"
case "$1" in case "$1" in
apps) 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 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
;; ;;
+16
View File
@@ -17,6 +17,22 @@ function info2() {
echo "=====> $@" 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() { function verbose() {
echo " $@" echo " $@"
} }
+1 -1
View File
@@ -65,7 +65,7 @@ case "$1" in
fi fi
done done
[[ -z "$DOKKU_QUIET_OUTPUT" ]] && info2 "$APP config vars" info2 "$APP config vars"
config_styled_hash "$VARS" config_styled_hash "$VARS"
;; ;;
+1 -1
View File
@@ -24,7 +24,7 @@ case "$1" in
APP="$2" APP="$2"
dokku domains:setup $APP dokku domains:setup $APP
[[ -z "$DOKKU_QUIET_OUTPUT" ]] && info2 "$APP Domain Names" info2 "$APP Domain Names"
cat "$DOKKU_ROOT/$APP/VHOST" cat "$DOKKU_ROOT/$APP/VHOST"
;; ;;