Skip to content

Commit 55a2636

Browse files
author
OpenShift Bot
authored
Merge pull request #9333 from stevekuznetsov/skuznets/better-tests
Merged by openshift-bot
2 parents 610d0b8 + 703a36e commit 55a2636

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

hack/text.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,42 @@
55

66
# os::text::reset resets the terminal output to default if it is called in a TTY
77
function os::text::reset() {
8-
if [ -t 1 ]; then
8+
if [[ -t 1 ]]; then
99
tput sgr0
1010
fi
1111
}
1212

1313
# os::text::bold sets the terminal output to bold text if it is called in a TTY
1414
function os::text::bold() {
15-
if [ -t 1 ]; then
15+
if [[ -t 1 ]]; then
1616
tput bold
1717
fi
1818
}
1919

2020
# os::text::red sets the terminal output to red text if it is called in a TTY
2121
function os::text::red() {
22-
if [ -t 1 ]; then
22+
if [[ -t 1 ]]; then
2323
tput setaf 1
2424
fi
2525
}
2626

2727
# os::text::green sets the terminal output to green text if it is called in a TTY
2828
function os::text::green() {
29-
if [ -t 1 ]; then
29+
if [[ -t 1 ]]; then
3030
tput setaf 2
3131
fi
3232
}
3333

3434
# os::text::blue sets the terminal output to blue text if it is called in a TTY
3535
function os::text::blue() {
36-
if [ -t 1 ]; then
36+
if [[ -t 1 ]]; then
3737
tput setaf 4
3838
fi
3939
}
4040

4141
# os::text::yellow sets the terminal output to yellow text if it is called in a TTY
4242
function os::text::yellow() {
43-
if [ -t 1 ]; then
43+
if [[ -t 1 ]]; then
4444
tput setaf 11
4545
fi
4646
}
@@ -49,7 +49,7 @@ function os::text::yellow() {
4949
# terminal and leaves the cursor on that line to allow for overwriting that text
5050
# if it is called in a TTY
5151
function os::text::clear_last_line() {
52-
if [ -t 1 ]; then
52+
if [[ -t 1 ]]; then
5353
tput cuu 1
5454
tput el
5555
fi

0 commit comments

Comments
 (0)