Tyleo-Dev-ShellScripting-Ol.../SH/fakeloadingscreen1.sh
2024-02-18 22:29:57 +01:00

31 lines
507 B
Bash
Executable file

#!/usr/bin/env bash
printf '
-------------------
FAKE LOADING SCREEN
-------------------\n
'
echo "Type 'start' to start loading !"
echo "CTRL+C to stop loading !"
read loading
while true
do
if [[ $loading = start ]]; then
clear
echo "---------"
echo "Loading ."
echo "---------"
sleep 1
clear
echo "----------"
echo "Loading .."
echo "----------"
sleep 1
clear
echo "-----------"
echo "Loading ..."
echo "-----------"
sleep 1
else
exit
fi
done