Fixed install.sh
This commit is contained in:
+3
-4
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user