diff --git a/install-scripts/Global_functions.sh b/install-scripts/Global_functions.sh index bb4a3bb..c72261b 100755 --- a/install-scripts/Global_functions.sh +++ b/install-scripts/Global_functions.sh @@ -29,7 +29,8 @@ fi show_progress() { local pid=$1 local package_name=$2 - local spin_chars=("●○○○" "○●○○" "○○●○" "○○○●" "○○●○" "○●○○") # Dots Growing & Shrinking + local spin_chars=("●○○○○○" "○●○○○○" "○○●○○○" "○○○●○○" "○○○○●○" "○○○○○●" \ + "○○○○●○" "○○○●○○" "○○●○○○" "○●○○○○") # Growing & Shrinking Dots local i=0 tput civis # Hide cursor @@ -37,8 +38,8 @@ show_progress() { while ps -p $pid &> /dev/null; do printf "\r${NOTE} Installing ${YELLOW}%s${RESET} %s" "$package_name" "${spin_chars[i]}" - i=$(( (i + 1) % 6 )) - sleep 0.2 + i=$(( (i + 1) % 10 )) # Cycle through 10 animation frames + sleep 0.3 # Slower animation done printf "\r${NOTE} Installing ${YELLOW}%s${RESET} ... Done!%-20s\n" "$package_name" "" @@ -46,7 +47,6 @@ show_progress() { } - # Function to install packages with pacman install_package_pacman() { # Check if package is already installed