From c1ddae42d88c9d81b348891844a508a0d0fb9743 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 28 Dec 2021 23:58:28 -0300 Subject: [PATCH] Return 0 in runInChroot() --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index aa0b2f9..05d1ef1 100755 --- a/install.sh +++ b/install.sh @@ -271,7 +271,7 @@ ${1} EOF chmod 755 /mnt/cocoScript arch-chroot /mnt /cocoScript - rm /mnt/cocoScript + return $? } installNotImportantPackages() { @@ -282,6 +282,7 @@ installNotImportantPackages() { } finishInstallation() { + rm /mnt/cocoScript umount -R /mnt whiptail --yesno "Finally, the PC needs to restart, would you like to do it?" 0 0 if [ $? -eq 0 ]; then