From 62cde7c8f62e5b1fa2e6f6a6f3e7c3df25d485a1 Mon Sep 17 00:00:00 2001 From: installer Date: Mon, 9 Sep 2024 23:35:25 +0900 Subject: [PATCH] added force reinstall for some packages. remove cargo --- install-scripts/00-hypr-pkgs.sh | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/install-scripts/00-hypr-pkgs.sh b/install-scripts/00-hypr-pkgs.sh index 4b10740..cee5bbe 100755 --- a/install-scripts/00-hypr-pkgs.sh +++ b/install-scripts/00-hypr-pkgs.sh @@ -62,6 +62,13 @@ hypr_package_2=( uninstall=( dunst mako + rofi + cargo +) + +# List packages to force reinstall +force=( + yad ) ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## @@ -88,8 +95,7 @@ for PKG1 in "${hypr_package[@]}" "${hypr_package_2[@]}" "${Extra[@]}"; do fi done -printf "\n%s - Checking if mako or dunst are installed and removing for swaync to work properly \n" "${NOTE}" - +printf "\n%s - Uninstalling some packages inorder for dots to work properly \n" "${NOTE}" for PKG in "${uninstall[@]}"; do uninstall_package "$PKG" 2>&1 | tee -a "$LOG" if [ $? -ne 0 ]; then @@ -98,6 +104,19 @@ for PKG in "${uninstall[@]}"; do fi done +for PKG2 in "${force[@]}"; do + re_install_package "$PKG2" 2>&1 | tee -a "$LOG" + if [ $? -ne 0 ]; then + echo -e "\e[1A\e[K${ERROR} - Force reinstall of $PKG2 failed" + exit 1 + fi +done + +# Install up-to-date Rust +echo "Installing most up to date Rust compiler..." +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y 2>&1 | tee -a "$LOG" +source "$HOME/.cargo/env" + ## making brightnessctl work sudo chmod +s $(which brightnessctl) 2>&1 | tee -a "$LOG" || true