Skip to content

Commit 43a4c0b

Browse files
authored
Add warning to test.sh that it's for internal use only
Add warning to test.sh that it's for internal use only
1 parent b3e8aab commit 43a4c0b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/test.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ MIRROR_COUNTRY="${MIRROR_COUNTRY:=US}"
119119
NO_CACHE="${NO_CACHE:=--no-cache}"
120120

121121

122+
TEST_BUILDS=(
123+
'docker-osx:naked'
124+
'docker-osx:naked-auto'
125+
'docker-osx:auto'
126+
)
127+
122128
TEST_BUILDS=(
123129
'docker-osx:naked'
124130
'docker-osx:naked-auto'
@@ -133,6 +139,20 @@ VERSION_BUILDS=(
133139
'monterey'
134140
)
135141

142+
warning () {
143+
clear
144+
for j in {15..1}; do
145+
echo "############# WARNING: THIS SCRIPT IS NOT INTENDED FOR USE BY ################"
146+
echo "############# IT IS USED BY THE PROJECT TO BUILD AND PUSH TO DOCKERHUB #######"
147+
echo ""
148+
echo " Press Ctrl C to stop. "
149+
MAX_COLS=$((${COLUMNS}/2))
150+
printf "$j %.0s" {1..20}
151+
echo
152+
sleep 1
153+
done
154+
}
155+
136156
install_docker () {
137157
apt remove docker docker-engine docker.io containerd runc -y \
138158
; apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y \
@@ -270,6 +290,7 @@ EOF
270290
systemctl enable --now docker
271291
}
272292

293+
warning
273294
tee -a ~/.bashrc <<EOF
274295
export DEBIAN_FRONTEND=noninteractive
275296
export TZ=UTC

0 commit comments

Comments
 (0)