INNER CODE UNIT · Shell
n
ByCh4n/BCHackTool · bchacktool.sh:152
n=$((i*barlength / 100))
printf "\e[00;32m\r[%-${barlength}s]\e[00m" "${bar:0:n}"
((i += RANDOM%5+2))
sleep 0.02
done
echo -e "[${green}OK${tp}]"
}
function pressanykey {
read -n 1 -r -s -p $'Press any key to continue...\n'
}
function pressanykey3 {
read -t 3 -n 1 -r -s -p $'Press any key to continue...\n'
}
function ok {
echo "ok" &> /dev/null