Skip to content

Commit fb9d617

Browse files
committed
[#2351] Restored simplified helper style in 'provision-10-example.sh'.
1 parent 95fdb84 commit fb9d617

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

scripts/custom/provision-10-example.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,10 @@ set -eu
1919

2020
# ------------------------------------------------------------------------------
2121

22-
# @formatter:off
23-
info() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[36m[INFO] %s\033[0m\n" "${1}" || printf "[INFO] %s\n" "${1}"; }
22+
info() { printf " ==> %s\n" "${1}"; }
2423
note() { printf " %s\n" "${1}"; }
25-
task() { _TASK_START=$(date +%s); [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[34m[TASK] %s\033[0m\n" "${1}" || printf "[TASK] %s\n" "${1}"; }
26-
pass() { _d=""; [ -n "${_TASK_START:-}" ] && _d=" ($(($(date +%s) - _TASK_START))s)" && unset _TASK_START; [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[32m[ OK ] %s%s\033[0m\n" "${1}" "${_d}" || printf "[ OK ] %s%s\n" "${1}" "${_d}"; }
27-
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
28-
# @formatter:on
24+
task() { printf " > %s\n" "${1}"; }
25+
pass() { printf " < %s\n" "${1}"; }
2926

3027
drush() { ./vendor/bin/drush -y "$@"; }
3128

0 commit comments

Comments
 (0)