Removed exit

This commit is contained in:
Kevin Veen-Birkenbach 2020-04-29 21:33:26 +02:00
parent c0b5473041
commit 4c5dd6e53e
2 changed files with 7 additions and 1 deletions

5
execute.sh Normal file
View File

@ -0,0 +1,5 @@
( echo "kevinfrantz"
echo "mmcblk1"
echo "4"
echo "retropie"
)| sudo bash ./sd_setup.sh

View File

@ -135,7 +135,7 @@ if [[ -v image_checksum ]]
else else
echo "WARNING: Verification is not possible. No checksum is define." echo "WARNING: Verification is not possible. No checksum is define."
fi fi
exit
echo "Preparing mount paths..." echo "Preparing mount paths..."
boot_mount_path="$working_folder""boot" boot_mount_path="$working_folder""boot"
root_mount_path="$working_folder""root" root_mount_path="$working_folder""root"
@ -251,6 +251,7 @@ fi
echo "The first level folder structure on $root_mount_path is now:" && tree -laL 1 "$root_mount_path" echo "The first level folder structure on $root_mount_path is now:" && tree -laL 1 "$root_mount_path"
echo "The first level folder structure on $boot_mount_path is now:" && tree -laL 1 "$boot_mount_path" echo "The first level folder structure on $boot_mount_path is now:" && tree -laL 1 "$boot_mount_path"
echo "Cleaning up..." echo "Cleaning up..."
umount -v "$root_mount_path" "$boot_mount_path" umount -v "$root_mount_path" "$boot_mount_path"
rm -vr "$working_folder" rm -vr "$working_folder"
echo "Setup successfull :)" && exit 0 echo "Setup successfull :)" && exit 0