Skip to content

Commit 7d06bf7

Browse files
committed
Improved prompt for user device in templates
1 parent a8510f3 commit 7d06bf7

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

apps/aarch64-darwin/apply

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ select_boot_disk() {
154154

155155
# Warning message for data deletion
156156
_print "${RED}WARNING: All data on the chosen disk will be erased during the installation!${NC}"
157-
_prompt "${YELLOW}Please choose your boot disk (e.g., nvme0n1, sda): ${NC}" _boot_disk
157+
_prompt "${YELLOW}Please enter the name of your boot disk (e.g., sda, nvme0n1). Do not include the full path ("/dev/"): ${NC}" _boot_disk
158158

159159
# Confirmation for disk selection to prevent accidental data loss
160160
_print "${YELLOW}You have selected $_boot_disk as the boot disk. This will delete everything on this disk. Are you sure? (Y/N): ${NC}"

apps/x86_64-darwin/apply

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ select_boot_disk() {
154154

155155
# Warning message for data deletion
156156
_print "${RED}WARNING: All data on the chosen disk will be erased during the installation!${NC}"
157-
_prompt "${YELLOW}Please choose your boot disk (e.g., nvme0n1, sda): ${NC}" _boot_disk
157+
_prompt "${YELLOW}Please enter the name of your boot disk (e.g., sda, nvme0n1). Do not include the full path ("/dev/"): ${NC}" _boot_disk
158158

159159
# Confirmation for disk selection to prevent accidental data loss
160160
_print "${YELLOW}You have selected $_boot_disk as the boot disk. This will delete everything on this disk. Are you sure? (Y/N): ${NC}"

apps/x86_64-linux/apply

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ select_boot_disk() {
8585

8686
# Warning message for data deletion
8787
_print "${RED}WARNING: All data on the chosen disk will be erased during the installation!${NC}"
88-
_prompt "${YELLOW}Please choose your boot disk (e.g., nvme0n1, sda): ${NC}" _boot_disk
88+
_prompt "${YELLOW}Please enter the name of your boot disk (e.g., sda, nvme0n1). Do not include the full path ("/dev/"): ${NC}" _boot_disk
8989

9090
# Confirmation for disk selection to prevent accidental data loss
9191
_print "${YELLOW}You have selected $_boot_disk as the boot disk. This will delete everything on this disk. Are you sure? (Y/N): ${NC}"

templates/starter-with-secrets/apps/aarch64-darwin/apply

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ select_boot_disk() {
154154

155155
# Warning message for data deletion
156156
_print "${RED}WARNING: All data on the chosen disk will be erased during the installation!${NC}"
157-
_prompt "${YELLOW}Please choose your boot disk (e.g., nvme0n1, sda): ${NC}" _boot_disk
157+
_prompt "${YELLOW}Please enter the name of your boot disk (e.g., sda, nvme0n1). Do not include the full path ("/dev/"): ${NC}" _boot_disk
158158

159159
# Confirmation for disk selection to prevent accidental data loss
160160
_print "${YELLOW}You have selected $_boot_disk as the boot disk. This will delete everything on this disk. Are you sure? (Y/N): ${NC}"

templates/starter-with-secrets/apps/x86_64-darwin/apply

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ select_boot_disk() {
154154

155155
# Warning message for data deletion
156156
_print "${RED}WARNING: All data on the chosen disk will be erased during the installation!${NC}"
157-
_prompt "${YELLOW}Please choose your boot disk (e.g., nvme0n1, sda): ${NC}" _boot_disk
157+
_prompt "${YELLOW}Please enter the name of your boot disk (e.g., sda, nvme0n1). Do not include the full path ("/dev/"): ${NC}" _boot_disk
158158

159159
# Confirmation for disk selection to prevent accidental data loss
160160
_print "${YELLOW}You have selected $_boot_disk as the boot disk. This will delete everything on this disk. Are you sure? (Y/N): ${NC}"

templates/starter-with-secrets/apps/x86_64-linux/apply

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ select_boot_disk() {
9696

9797
# Warning message for data deletion
9898
_print "${RED}WARNING: All data on the chosen disk will be erased during the installation!${NC}"
99-
_prompt "${YELLOW}Please choose your boot disk (e.g., nvme0n1, sda): ${NC}" _boot_disk
99+
_prompt "${YELLOW}Please enter the name of your boot disk (e.g., sda, nvme0n1). Do not include the full path ("/dev/"): ${NC}" _boot_disk
100100

101101
# Confirmation for disk selection to prevent accidental data loss
102102
_print "${YELLOW}You have selected $_boot_disk as the boot disk. This will delete everything on this disk. Are you sure? (Y/N): ${NC}"

templates/starter/apps/aarch64-darwin/apply

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ select_boot_disk() {
8888

8989
# Warning message for data deletion
9090
_print "${RED}WARNING: All data on the chosen disk will be erased during the installation!${NC}"
91-
_prompt "${YELLOW}Please choose your boot disk (e.g., nvme0n1, sda): ${NC}" _boot_disk
91+
_prompt "${YELLOW}Please enter the name of your boot disk (e.g., sda, nvme0n1). Do not include the full path ("/dev/"): ${NC}" _boot_disk
9292

9393
# Confirmation for disk selection to prevent accidental data loss
9494
_print "${YELLOW}You have selected $_boot_disk as the boot disk. This will delete everything on this disk. Are you sure? (Y/N): ${NC}"

templates/starter/apps/x86_64-darwin/apply

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ select_boot_disk() {
8888

8989
# Warning message for data deletion
9090
_print "${RED}WARNING: All data on the chosen disk will be erased during the installation!${NC}"
91-
_prompt "${YELLOW}Please choose your boot disk (e.g., nvme0n1, sda): ${NC}" _boot_disk
91+
_prompt "${YELLOW}Please enter the name of your boot disk (e.g., sda, nvme0n1). Do not include the full path ("/dev/"): ${NC}" _boot_disk
9292

9393
# Confirmation for disk selection to prevent accidental data loss
9494
_print "${YELLOW}You have selected $_boot_disk as the boot disk. This will delete everything on this disk. Are you sure? (Y/N): ${NC}"

templates/starter/apps/x86_64-linux/apply

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ select_boot_disk() {
8888

8989
# Warning message for data deletion
9090
_print "${RED}WARNING: All data on the chosen disk will be erased during the installation!${NC}"
91-
_prompt "${YELLOW}Please choose your boot disk (e.g., nvme0n1, sda): ${NC}" _boot_disk
91+
_prompt "${YELLOW}Please enter the name of your boot disk (e.g., sda, nvme0n1). Do not include the full path ("/dev/"): ${NC}" _boot_disk
9292

9393
# Confirmation for disk selection to prevent accidental data loss
9494
_print "${YELLOW}You have selected $_boot_disk as the boot disk. This will delete everything on this disk. Are you sure? (Y/N): ${NC}"

0 commit comments

Comments
 (0)