mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-29 18:13:10 +01:00
Update install.func
Spinner update
This commit is contained in:
parent
82b6e743f1
commit
4ccf823d7a
@ -12,7 +12,7 @@ color() {
|
|||||||
CM="${GN}✓${CL}"
|
CM="${GN}✓${CL}"
|
||||||
CROSS="${RD}✗${CL}"
|
CROSS="${RD}✗${CL}"
|
||||||
BFR="\\r\\033[K"
|
BFR="\\r\\033[K"
|
||||||
HOLD="-"
|
HOLD=" "
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function enables IPv6 if it's not disabled and sets verbose mode if the global variable is set to "yes"
|
# This function enables IPv6 if it's not disabled and sets verbose mode if the global variable is set to "yes"
|
||||||
@ -49,12 +49,12 @@ error_handler() {
|
|||||||
|
|
||||||
# This function displays a spinner.
|
# This function displays a spinner.
|
||||||
spinner() {
|
spinner() {
|
||||||
|
local chars="/-\|"
|
||||||
|
local spin_i=0
|
||||||
printf "\e[?25l"
|
printf "\e[?25l"
|
||||||
spinner="/-\\|/-\\|"
|
|
||||||
spin_i=0
|
|
||||||
while true; do
|
while true; do
|
||||||
printf "\b%s" "${spinner:spin_i++%${#spinner}:1}"
|
printf "\r \e[36m%s\e[0m" "${chars:spin_i++%${#chars}:1}"
|
||||||
sleep 0.2
|
sleep 0.1
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user