Return 0 in runInChroot()

This commit is contained in:
Santiago Lo Coco 2021-12-28 23:58:28 -03:00
parent eb95ea2712
commit c1ddae42d8
1 changed files with 2 additions and 1 deletions

View File

@ -271,7 +271,7 @@ ${1}
EOF EOF
chmod 755 /mnt/cocoScript chmod 755 /mnt/cocoScript
arch-chroot /mnt /cocoScript arch-chroot /mnt /cocoScript
rm /mnt/cocoScript return $?
} }
installNotImportantPackages() { installNotImportantPackages() {
@ -282,6 +282,7 @@ installNotImportantPackages() {
} }
finishInstallation() { finishInstallation() {
rm /mnt/cocoScript
umount -R /mnt umount -R /mnt
whiptail --yesno "Finally, the PC needs to restart, would you like to do it?" 0 0 whiptail --yesno "Finally, the PC needs to restart, would you like to do it?" 0 0
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then