Skip to content

Commit 2cf451d

Browse files
Improve Progress Bar on Apache make and install
1 parent 3a8948d commit 2cf451d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ defaultcolor=$(tput setaf default)
6060
spinner() {
6161
local pid=$!
6262
local delay=0.1
63-
local spinstr='*'
63+
#local spinstr='*'
64+
local spinstr=""
65+
#printf "▓"
6466
while [ "$(ps a | awk '{print $1}' | grep $pid)" ]; do
6567
local temp=${spinstr#?}
6668
printf "${bold}${green}%c" "$spinstr"
@@ -114,10 +116,12 @@ wget https://github.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/raw/maste
114116
tar -xvf httpd-2.2.25.tar.gz > /dev/null
115117
cd httpd-2.2.25/
116118
./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http >/dev/null
119+
printf '\n'
117120
echo "${bold}${green}Building Apache 2.2.25"
118121
printf '\n'
119122
make &> apache2build.log &
120123
spinner
124+
printf '\n'
121125
echo "${bold}${green}Installing Apache 2.2.25"
122126
printf '\n'
123127
sudo make -s install &> apache2build.log &

0 commit comments

Comments
 (0)