@@ -66,7 +66,7 @@ blackbox() {
6666 export BLACKBOX_HEAP_DIR=" /tmp/${3} "
6767 export BLACKBOX_STORAGE_DIR=" /var/save/${3} "
6868 export BLACKBOX_BUILD_LOG=" ${BLACKBOX_STORAGE_DIR} /build.log"
69- export BLACKBOX_BUILD_STREAM_DISPLAY_LINES=255
69+ export BLACKBOX_BUILD_STREAM_DISPLAY_LINES=23456
7070
7171 # shellcheck disable=SC2034
7272 typeset -gx BLACKBOX_SCENARIO_PATH=$( realpath " $0 " )
@@ -230,20 +230,12 @@ blackbox() {
230230 (
231231 if [ -n " $header " ]; then
232232 printf " \n"
233-
234- if [[ " $BLACKBOX_FLAG__DEBUG_MODE " == " yes" ]]; then
235- printf " \033[0;37m// %s%s%s\033[0m\n" " ${entrypoint[0]} " " ${args[*]} " " ${opts[*]} "
236- fi
237-
233+ printf " \033[0;37m// @%s~%s %s%s%s\033[0m\n" " $( date -u --iso-8601=seconds) " " $SECONDS " " ${entrypoint[0]} " " ${args[*]} " " ${opts[*]} "
238234 printf " \033[0;34m[%s]\033[0m\n" " ${header^^} "
239235 printf " \033[0;37m%s\033[0m\n" " $( printenv | sort | awk ' ORS=" "' ) "
240236 printf " \033[0;37m--\033[0m\n"
241237 else
242- if [[ " $BLACKBOX_FLAG__DEBUG_MODE " != " yes" ]]; then
243- return
244- fi
245-
246- printf " \033[0;37m// %s%s%s {...}\033[0m\n" " ${entrypoint[0]} " " ${args[*]} " " ${opts[*]} "
238+ printf " \033[0;37m// @%s~%s %s%s%s {...}\033[0m\n" " $( date -u --iso-8601=seconds) " " $SECONDS " " ${entrypoint[0]} " " ${args[*]} " " ${opts[*]} "
247239 fi
248240 ) | if ( tput setaf & > /dev/null ); then cat; else sed " s/\x1b\[[0-9;]*m//g" ; fi | if [[ " $BLACKBOX_FLAG__DEBUG_MODE " == " yes" ]]; then cat >&2 ; else cat; fi
249241 }
@@ -263,6 +255,8 @@ blackbox() {
263255 typeset module_name=$1
264256 typeset -a module_args=(" ${@: 2} " )
265257
258+ typeset -gx SECONDS=0
259+
266260 {
267261 shopt -os allexport
268262 . /etc/environment
@@ -274,8 +268,8 @@ blackbox() {
274268 }
275269
276270 if [ ! -e " $BLACKBOX_DIR " ]; then
277- curl -H " Cache-Control: no-cache, no-store " -H " Pragma: no-cache " " https://codeload.github.com/ProblemSetters/devops-blackbox/zip/refs/heads/${BLACKBOX_VERSION} " --output /tmp/blackbox && {
278- unzip /tmp/blackbox -d /tmp && {
271+ wget -S --output-document= " /tmp/blackbox.zip " -- no-verbose " https://codeload.github.com/ProblemSetters/devops-blackbox/zip/refs/heads/${BLACKBOX_VERSION} " && {
272+ unzip /tmp/blackbox.zip -x " devops-blackbox-2204/.github/* " " devops-blackbox-2204/docs/* " " devops-blackbox-2204/.gitignore " " devops-blackbox-2204/Makefile.* " " devops-blackbox-2204/README.md " " devops-blackbox-2204/Vagrantfile " -d /tmp && {
279273 mv " /tmp/devops-blackbox-${BLACKBOX_VERSION} " " $BLACKBOX_DIR "
280274 rm -rf /tmp/* blackbox*
281275 }
0 commit comments