確認のメッセージに改行を追加

This commit is contained in:
suti7yk5032 2024-06-23 21:07:50 +09:00
parent 85c8cc144f
commit cfca845ed8

View file

@ -1,23 +1,23 @@
#!/bin/bash #!/bin/bash
loadkeys jp106 loadkeys jp106
#キーボードを日本語配列へ変更 #キーボードを日本語配列へ変更
printf "Please enter your username\n" printf "Please enter your username\n\n"
read -r home_username read -r home_username
printf "Please enter your password\n" printf "Please enter your password\n\n"
read -sr home_password read -sr home_password
printf "Please enter Hostname\n" printf "Please enter Hostname\n\n"
read -r hostname1 read -r hostname1
fdisk -l fdisk -l
#ディスク一覧表示 #ディスク一覧表示
printf "\nWhat disk do you want to install to? example:/dev/sda \n\n" printf "\nWhat disk do you want to install to? example:/dev/sda \n\n"
read -r installdisk read -r installdisk
printf "\nChoose the file system to use for your root partition. (ext4, btrfs)" printf "\nChoose the file system to use for your root partition. (ext4, btrfs)\n\n"
read -r filesystem read -r filesystem
printf "\nChoose the kernel you want to use. (linux, zen, lts)" printf "\nChoose the kernel you want to use. (linux, zen, lts)\n\n"
read -r kernel read -r kernel
#インストールするディスクを入力 #インストールするディスクを入力
printf "%s (%s) is selected as the disk to install. Are you sure you want to perform the partition operation? (yes or no) \n" "$installdisk" "$filesystem" printf "%s (%s) is selected as the disk to install. Are you sure you want to perform the partition operation? (yes or no) \n\n" "$installdisk" "$filesystem"
read -r check1 read -r check1
#インストールするディスクを確認 #インストールするディスクを確認
if [ "$check1" == "yes" ]; then if [ "$check1" == "yes" ]; then