Okay so I’m basically trying to let the user decide which drive they would like to use to install software to. I’d like a question posted simular to “which drive would you like to install to?” and then it lists the drives numbered so that the user can easily select one of the drives. Is there a way to number ls results and then let the user select one. I was thinking about using the case command or maybe an echo and a read, But I just can’t get this to work quite right. Also I should add this is in bash on a mac. Thank you so much.
Share
Use
select:You can use a
casestatement inside theselectblock if that suits your needs.Also, see
dialogandwhiptail. Unfortunately, neither seem to come with OS X.