it seems like installer is breaking pokemon

This commit is contained in:
JaKooLit
2025-02-23 20:43:18 +09:00
parent 2ee27f6959
commit 11f2b0c6fe
2 changed files with 18 additions and 1 deletions

View File

@@ -93,6 +93,23 @@ install_package() {
fi fi
} }
# Function to just install packages with either yay or paru without checking if installed
install_package_f() {
(
stdbuf -oL $ISAUR -S --noconfirm "$1" 2>&1
) >> "$LOG" 2>&1 &
PID=$!
show_progress $PID "$1"
# Double check if package is installed
if $ISAUR -Q "$1" &>> /dev/null ; then
echo -e "${OK} Package ${YELLOW}$1${RESET} has been successfully installed!"
else
# Something is missing, exiting to review log
echo -e "\n${ERROR} ${YELLOW}$1${RESET} failed to install :( , please check the install.log. You may need to install manually! Sorry I have tried :("
fi
}
# Function for removing packages # Function for removing packages
uninstall_package() { uninstall_package() {
local pkg="$1" local pkg="$1"

View File

@@ -20,7 +20,7 @@ printf "${NOTE} Removing any traces of ${SKY_BLUE}Pokemon Color Scripts${RESET}\
# Install Pokemon Color Scripts # Install Pokemon Color Scripts
printf "${NOTE} Installing ${SKY_BLUE}Pokemon Color Scripts${RESET}\n" printf "${NOTE} Installing ${SKY_BLUE}Pokemon Color Scripts${RESET}\n"
for pok in "pokemon-colorscripts-git"; do for pok in "pokemon-colorscripts-git"; do
install_package "$pok" "$LOG" install_package_f "$pok" "$LOG"
done done
printf "\n%.0s" {1..1} printf "\n%.0s" {1..1}