From 4c5dd6e53e9eedb748dd9e0bad31ac553bbddcd7 Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Wed, 29 Apr 2020 21:33:26 +0200 Subject: [PATCH] Removed exit --- execute.sh | 5 +++++ sd_setup.sh | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 execute.sh diff --git a/execute.sh b/execute.sh new file mode 100644 index 0000000..5d9ee2f --- /dev/null +++ b/execute.sh @@ -0,0 +1,5 @@ +( echo "kevinfrantz" + echo "mmcblk1" + echo "4" + echo "retropie" +)| sudo bash ./sd_setup.sh diff --git a/sd_setup.sh b/sd_setup.sh index 388533c..79ce858 100644 --- a/sd_setup.sh +++ b/sd_setup.sh @@ -135,7 +135,7 @@ if [[ -v image_checksum ]] else echo "WARNING: Verification is not possible. No checksum is define." fi -exit + echo "Preparing mount paths..." boot_mount_path="$working_folder""boot" 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 $boot_mount_path is now:" && tree -laL 1 "$boot_mount_path" echo "Cleaning up..." + umount -v "$root_mount_path" "$boot_mount_path" rm -vr "$working_folder" echo "Setup successfull :)" && exit 0