Skip to content
This repository was archived by the owner on May 9, 2018. It is now read-only.

Commit 5469c70

Browse files
author
Zachary DuBois
committed
Update messages.
1 parent 5a345d7 commit 5469c70

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## v0.5.8
44

55
- Adds the FRA1 datacenter.
6+
- Use new message types.
67

78
## v0.5.7
89

do-cli-speedtest

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ testType=$1
1616
# Message Types
1717
##
1818

19-
fail="[$(tput setaf 1)FAIL$(tput sgr0)]"
20-
ok="[$(tput setaf 2)OK$(tput sgr0)]"
21-
running="[$(tput setaf 3)*$(tput sgr0)]"
19+
fail="[$(tput setaf 1) FAIL $(tput sgr0)]"
20+
ok="[$(tput setaf 2) OK $(tput sgr0)]"
21+
running="[$(tput setaf 3) ** $(tput sgr0)]"
2222
notice="[$(tput setaf 3)NOTICE$(tput sgr0)]"
23-
warning="[$(tput setaf 3)WARNING$(tput sgr0)]"
24-
info="[$(tput setaf 6)INFO$(tput sgr0)]"
25-
finish="[$(tput setaf 4)DONE$(tput sgr0)]"
26-
23+
warn="[$(tput setaf 3) WARN $(tput sgr0)]"
24+
info="[$(tput setaf 6) INFO $(tput sgr0)]"
25+
finish="[$(tput setaf 4) DONE $(tput sgr0)]"
2726

2827
##
2928
# Startup Checks
@@ -51,9 +50,9 @@ fi
5150
##
5251

5352
echo
54-
echo "Welcome to the DigitalOcean Speed Test CLI $version."
55-
echo "A thing made by Zachary DuBois."
56-
echo "Source is available here: https://github.com/ZacharyDuBois/DigitalOcean-Speed-Test-CLI"
53+
echo "$info Welcome to the DigitalOcean Speed Test CLI $version."
54+
echo "$info A thing made by Zachary DuBois."
55+
echo "$info Source is available here: https://github.com/ZacharyDuBois/DigitalOcean-Speed-Test-CLI"
5756
echo
5857

5958

@@ -116,7 +115,7 @@ pingTest() {
116115
if ! [[ "$pkLossRaw" =~ ^(0\.0\%|0\%) ]]
117116
then
118117
pkLoss=$(tput setaf 2)$pkLossRaw$(tput sgr0)
119-
echo "$warning $name Packet Loss: $pkLoss."
118+
echo "$warn $name Packet Loss: $pkLoss."
120119
fi
121120
}
122121

0 commit comments

Comments
 (0)