diff --git a/scripts/run_archiso.sh b/scripts/run_archiso.sh index 210246c..4a062ee 100755 --- a/scripts/run_archiso.sh +++ b/scripts/run_archiso.sh @@ -15,117 +15,106 @@ set -eu print_help() { - cat << EOF + local usagetext + IFS='' read -r -d '' usagetext < 0 )); then while getopts 'bhi:su' flag; do - case "${flag}" in + case "$flag" in b) - boot_type=bios + boot_type='bios' ;; h) print_help @@ -135,13 +124,13 @@ if [ ${#@} -gt 0 ]; then image="$OPTARG" ;; u) - boot_type=uefi + boot_type='uefi' ;; s) - secure_boot=yes + secure_boot='on' ;; *) - echo "Error: Wrong option. Try 'run_archiso -h'." + printf '%s\n' "Error: Wrong option. Try 'run_archiso -h'." exit 1 ;; esac