mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Update build.func
Spinner update
This commit is contained in:
		@@ -16,7 +16,7 @@ color() {
 | 
			
		||||
  CM="${GN}✓${CL}"
 | 
			
		||||
  CROSS="${RD}✗${CL}"
 | 
			
		||||
  BFR="\\r\\033[K"
 | 
			
		||||
  HOLD="-"
 | 
			
		||||
  HOLD=" "
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# This function enables error handling in the script by setting options and defining a trap for the ERR signal.
 | 
			
		||||
@@ -38,13 +38,13 @@ error_handler() {
 | 
			
		||||
 | 
			
		||||
# This function displays a spinner.
 | 
			
		||||
spinner() {
 | 
			
		||||
  printf "\e[?25l"
 | 
			
		||||
  spinner="/-\\|/-\\|"
 | 
			
		||||
  spin_i=0
 | 
			
		||||
  while true; do
 | 
			
		||||
    printf "\b%s" "${spinner:spin_i++%${#spinner}:1}"
 | 
			
		||||
    sleep 0.1
 | 
			
		||||
  done
 | 
			
		||||
    local chars="/-\|"
 | 
			
		||||
    local spin_i=0
 | 
			
		||||
    printf "\e[?25l"
 | 
			
		||||
    while true; do
 | 
			
		||||
        printf "\r \e[36m%s\e[0m" "${chars:spin_i++%${#chars}:1}"
 | 
			
		||||
        sleep 0.1
 | 
			
		||||
    done
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# This function displays an informational message with a yellow color.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user