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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user