From 56c04e46491cb88f3e18b05df44bc67c7692b616 Mon Sep 17 00:00:00 2001 From: Darkkal44 Date: Sat, 29 Apr 2023 18:24:45 +0530 Subject: [PATCH] Fixed install.sh --- install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 8fe07af..9f62316 100755 --- a/install.sh +++ b/install.sh @@ -30,7 +30,7 @@ else fi # Install packages -sudo paru -Syu base-devel qtile python-psutil pywal-git picom-jonaburg-fix dunst zsh starship mpd ncmpcpp playerctl brightnessctl alacritty pfetch htop flameshot thunar roficlip rofi ranger cava pulseaudio pavucontrol neovim vim git sddm zsh-autosuggestions zsh-syntax-highlighting --noconfirm --needed +paru -Syu base-devel qtile python-psutil pywal-git picom-jonaburg-fix dunst zsh starship mpd ncmpcpp playerctl brightnessctl alacritty pfetch htop flameshot thunar roficlip rofi ranger cava pulseaudio pavucontrol neovim vim git sddm zsh-autosuggestions zsh-syntax-highlighting --noconfirm --needed # Check and set Zsh as the default shell [[ "$(awk -F: -v user="$USER" '$1 == user {print $NF}' /etc/passwd) " =~ "zsh " ]] || chsh -s $(which zsh) @@ -53,7 +53,7 @@ echo "Backing up the current configs. All the backup files will be available at mkdir -p ~/.cozy.bak for folder in .* *; do - if [[ -d "$folder" && ! "$folder" =~ ^(\.|\.\.)$ ]]; then + if [[ -d "$folder" && ! "$folder" =~ ^(\.|\.\.)$ && "$folder" != ".git" ]]; then if [ -d "$HOME/$folder" ]; then echo "Backing up ~/$folder" cp -r "$HOME/$folder" ~/.cozy.bak @@ -70,7 +70,6 @@ done - # Check if SDDM is installed and install if not if pacman -Qs sddm > /dev/null; then echo "SDDM is already installed"