Skip to content

Instantly share code, notes, and snippets.

@aoktox
Last active November 2, 2018 08:10
Show Gist options
  • Save aoktox/9e4e35fa8d5cd547be732d60743da578 to your computer and use it in GitHub Desktop.
Save aoktox/9e4e35fa8d5cd547be732d60743da578 to your computer and use it in GitHub Desktop.
Playing bash
#!/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
#!/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