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