Revert broken chooseDisk
function
This commit is contained in:
parent
d7238d019f
commit
bd89dc711f
2 changed files with 9 additions and 3 deletions
scripts/Scripts
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
function chooseDisk() {
|
||||
local message="$1";
|
||||
local -n result="$1";
|
||||
local message="$2";
|
||||
local choice;
|
||||
local disk;
|
||||
local -a disks;
|
||||
|
@ -46,7 +47,7 @@ function chooseDisk() {
|
|||
if [ "$choice" -ge 1 ] && [ "$choice" -le "$diskCount" ]
|
||||
then
|
||||
disk=(${disks[$choice]});
|
||||
echo "/dev/${disk[0]}";
|
||||
result="/dev/${disk[0]}";
|
||||
return;
|
||||
else
|
||||
>&2 echo "The specified choice \"$choice\" is invalid!";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue