1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2025-07-08 07:36:23 +00:00

Integrate old bootstrap_tfw_dev.sh into tfw.sh

This commit is contained in:
Kristóf Tóth
2018-06-19 14:23:48 +02:00
parent 0f9b5920c1
commit df285fea58
7 changed files with 171 additions and 209 deletions

View File

@ -5,3 +5,19 @@ pushd() {
popd() {
command popd "$@" > /dev/null
}
spinned() {
"$@" &
pid=$!
spin=("-" "\\" "|" "/")
echo -n "${spin[0]}"
while kill -0 $pid &> /dev/null; do
for i in "${spin[@]}"; do
echo -ne "\b$i"
sleep 0.1
done
done
echo -ne "\b"
wait $pid
}