updated zsh.sh

This commit is contained in:
JaKooLit
2025-02-03 22:29:04 +09:00
parent fa9c2ae04f
commit e1d258503a

View File

@@ -26,6 +26,15 @@ source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
# Set the name of the log file to include the current date and time
LOG="Install-Logs/install-$(date +%d-%H%M%S)_zsh.log"
# Installing core zsh packages
printf "\n%s - Installing ${SKY_BLUE}zsh packages${RESET} .... \n" "${NOTE}"
for ZSH in "${zsh_pkg[@]}"; do
install_package "$ZSH" "$LOG"
if [ $? -ne 0 ]; then
exit 1
fi
done
## Optional Pokemon color scripts
while true; do
if [[ -z $pokemon_choice ]]; then
@@ -49,19 +58,8 @@ while true; do
esac
done
# Installing core zsh packages
printf "${NOTE} Installing core zsh packages...${RESET}\n"
for ZSH in "${zsh_pkg[@]}"; do
(
install_package "$ZSH" "$LOG"
if [ $? -ne 0 ]; then
exit 1
fi
) &
done
wait
# Install the Pokemon color scripts if the user accepted earlier
# Install the Pokemon color scripts if user choose Y
if [[ "$pokemon_choice" =~ [Yy] ]]; then
echo "${NOTE} Installing ${SKY_BLUE}Pokemon color scripts${RESET} ..."
install_package 'pokemon-colorscripts-git' "$LOG"