Fixed install.sh

This commit is contained in:
Darkkal44
2023-04-29 14:49:17 +05:30
parent e2274d16af
commit 2ef2724e26
+3 -4
View File
@@ -46,12 +46,10 @@ fi
[[ "${plugins[*]} " =~ "zsh-autosuggestions " ]] || git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
[[ "${plugins[*]} " =~ "zsh-syntax-highlighting " ]] || git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# Make backup
echo "Backing up the current configs. All the backup files will be available at ~/.cozy.bak"
mkdir -p ~/.cozy.bak
# Make Backup
for folder in *; do
if [[ -d "$folder" && ! "$folder" =~ ^\. ]]; then
if [[ -d "$folder" && "$folder" != ".git" ]]; then
if [ -d "$HOME/$folder" ]; then
echo "Backing up ~/$folder"
cp -r "$HOME/$folder" ~/.cozy.bak
@@ -67,6 +65,7 @@ done
# Check if SDDM is installed and install if not
if pacman -Qs sddm > /dev/null; then
echo "SDDM is already installed"