Skip to content

Commit a9bd763

Browse files
Improve Progress Bar on Apache make and install
1 parent ee67dc8 commit a9bd763

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.dev-tools/install-apache-2.2.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ defaultcolor=$(tput setaf default)
6060
spinner() {
6161
local pid=$!
6262
local delay=0.1
63-
local spinstr='.'
63+
local spinstr=''
6464
while [ "$(ps a | awk '{print $1}' | grep $pid)" ]; do
6565
local temp=${spinstr#?}
66-
printf "${bold}${red}%c" "$spinstr"
66+
printf "${bold}${green}%c" "$spinstr"
6767
local spinstr=$temp${spinstr%"$temp"}
6868
sleep $delay
6969
printf "\b\b\b\b\b\b"
@@ -93,6 +93,7 @@ sudo apt-get install build-essential
9393

9494
cd /tmp
9595

96+
${defaultcolor}
9697
wget http://www.zlib.net/zlib-1.2.11.tar.gz
9798
tar -xvf zlib-1.2.11.tar.gz > /dev/null
9899
cd zlib-1.2.11/
@@ -106,6 +107,7 @@ printf '\n'
106107
sudo make -s install &> zlib.log &
107108
spinner
108109

110+
${defaultcolor}
109111
wget https://github.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/raw/master/.dev-tools/_apache_builds/httpd-2.2.25.tar.gz
110112
tar -xvf httpd-2.2.25.tar.gz > /dev/null
111113
cd httpd-2.2.25/

0 commit comments

Comments
 (0)