From b838c320a8248d1c8895e378e69e608e88f955ed Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" <85185940+JaKooLit@users.noreply.github.com> Date: Wed, 5 Jun 2024 14:56:40 +0900 Subject: [PATCH] Update swappy.sh --- install-scripts/swappy.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install-scripts/swappy.sh b/install-scripts/swappy.sh index 1054b5c..76c9947 100755 --- a/install-scripts/swappy.sh +++ b/install-scripts/swappy.sh @@ -32,7 +32,15 @@ for PKG1 in "${swappy[@]}"; do fi done -## +# Force reinstall above as seems its giving issue as swappy cant be build +for PKG1 in "${swappy[@]}"; do + sudo apt --reinstall install "$PKG1" 2>&1 | tee -a "$LOG" + if [ $? -ne 0 ]; then + echo -e "\e[1A\e[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs" + exit 1 + fi +done + printf "${NOTE} Installing swappy from source...\n" # Check if folder exists and remove it