From 43a4c0b0d980b6be3fd37f27b676bf266443a7e1 Mon Sep 17 00:00:00 2001 From: sickcodes <65906298+sickcodes@users.noreply.github.com> Date: Fri, 11 Mar 2022 04:08:26 +0000 Subject: [PATCH] Add warning to test.sh that it's for internal use only Add warning to test.sh that it's for internal use only --- tests/test.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/test.sh b/tests/test.sh index 84ec774..9a98a55 100644 --- a/tests/test.sh +++ b/tests/test.sh @@ -119,6 +119,12 @@ MIRROR_COUNTRY="${MIRROR_COUNTRY:=US}" NO_CACHE="${NO_CACHE:=--no-cache}" +TEST_BUILDS=( + 'docker-osx:naked' + 'docker-osx:naked-auto' + 'docker-osx:auto' +) + TEST_BUILDS=( 'docker-osx:naked' 'docker-osx:naked-auto' @@ -133,6 +139,20 @@ VERSION_BUILDS=( 'monterey' ) +warning () { + clear + for j in {15..1}; do + echo "############# WARNING: THIS SCRIPT IS NOT INTENDED FOR USE BY ################" + echo "############# IT IS USED BY THE PROJECT TO BUILD AND PUSH TO DOCKERHUB #######" + echo "" + echo " Press Ctrl C to stop. " + MAX_COLS=$((${COLUMNS}/2)) + printf "$j %.0s" {1..20} + echo + sleep 1 + done +} + install_docker () { apt remove docker docker-engine docker.io containerd runc -y \ ; apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y \ @@ -270,6 +290,7 @@ EOF systemctl enable --now docker } +warning tee -a ~/.bashrc <