From 827ab52ebd4bd6cf7104a967e4423101061068f9 Mon Sep 17 00:00:00 2001 From: Jane Doe Date: Sun, 14 Sep 2025 22:50:57 +0300 Subject: [PATCH] Add: Prompt has been added dealing with user error Remove: The LUKS logfile created at user's /home directory has been removed --- Amelia.sh | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/Amelia.sh b/Amelia.sh index f8d3f32..b1a1915 100644 --- a/Amelia.sh +++ b/Amelia.sh @@ -2,7 +2,7 @@ # Amelia Installer # Source: https://gitlab.com/prism7/archery -# Version: 9.5.1 +# Version: 9.5.2 set -euo pipefail ################################################################################################### @@ -2721,6 +2721,7 @@ Enter a number: " ################################################################################################### ask_optm() { + local prompt="Optimizations" sleep 0.2 YELLOW " @@ -2738,9 +2739,13 @@ Enter [y/N]: " if [[ "${askoptm}" == "n" ]]; then skip - else + elif [[ "${askoptm}" == "y" ]]; then return 0 + else + invalid + return 1 fi + ok } ################################################################################################### cust_kern_param() { @@ -7399,16 +7404,6 @@ CUSTOMSERV foreign optimizations secboot_sign - if [[ -n "${CRYPTPASS}" ]]; then - local stage_prompt="Saving LUKS logfile at /home" - if arch-chroot /mnt <<-SAVEPASS > "${void}" 2>&1 2> "${log}" ; then - echo "Your LUKS password is: ${CRYPTPASS}" | tee /home/${USERNAME}/Luks.log || exit -SAVEPASS - stage_ok - else - stage_fail - fi - fi completion installation="ok" umount -R /mnt