Last active
November 2, 2018 08:10
-
-
Save aoktox/9e4e35fa8d5cd547be732d60743da578 to your computer and use it in GitHub Desktop.
Playing bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PACKAGES=( | |
"apr" | |
"gettext" | |
"libffi" | |
"openssl" | |
"apr-util" | |
"glib" | |
"libiconv" | |
"optipng" | |
"argon2" | |
) | |
for var in "${PACKAGES[@]}" | |
do | |
echo "Installing : ${var}" | |
apt-get install ${var} | { | |
while IFS= read -r line | |
do | |
printf "\r\033[KOutput : ${line}" | |
done | |
printf "\r\033[K" | |
} | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PACKAGES=( | |
"lalala" | |
"lilili" | |
"lululu" | |
"lelele" | |
"lololo" | |
) | |
for var in "${PACKAGES[@]}" | |
do | |
echo -n "Installing : ${var}" | |
# apt-get install -y ${var} >> /dev/null 2>&1 | |
sleep 2 | |
printf "\r\033[K" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment