From a7466f526f510d198f89b9a73c5abaee4a2eeb99 Mon Sep 17 00:00:00 2001
From: Santiago Lo Coco <santilococo.01@gmail.com>
Date: Fri, 31 Dec 2021 17:07:25 -0300
Subject: [PATCH] Fix bugs

---
 install.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/install.sh b/install.sh
index e36b2ab..e64fa06 100755
--- a/install.sh
+++ b/install.sh
@@ -225,7 +225,7 @@ calcHeightAndRun() {
     }')
     comm=$(echo "$@" | sed "s/HEIGHT/$((5+$height))/g")
     if [[ $comm != *"3>&1 1>&2 2>&3" ]]; then
-        toRun="${comm} 3>&1 1>&2 2>&3"
+        comm="${comm} 3>&1 1>&2 2>&3"
     fi
     commOutput=$(eval $comm)
     exitStatus=$?
@@ -333,8 +333,10 @@ getDotfiles() {
     sh scripts/bootstrap.sh -w
     cd $lastFolder
 
-    rm ~/.bashrc /usr/bin/CocoASAIS
+    sudo rm -f ~/.bashrc /usr/bin/CocoASAIS
     sudo paru -Sy zaread-git 2>&1 | debug
+    chsh -s $(which zsh)
+    logout
 }
 
 steps=(
@@ -366,7 +368,7 @@ runScript() {
 
     clear
     if [ -d "$HOME/Documents" ]; then
-        whiptail --title "CocoASAIS" --msgbox "Now, we will finish the installation." 0 0
+        whiptail --title "CocoASAIS" --msgbox "Now, we will finish the installation. Press OK and wait." 7 60
         getDotfiles
         whiptail --title "CocoASAIS" --msgbox "All done!" 0 0
         clear