Update pve-privilege-converter.sh
This commit is contained in:
parent
d2d54c1bf1
commit
08fb1cce8b
@ -76,11 +76,11 @@ select_target_storage() {
|
|||||||
PS3="Enter number of target storage: "
|
PS3="Enter number of target storage: "
|
||||||
|
|
||||||
select opt in $target_storages; do
|
select opt in $target_storages; do
|
||||||
if [[ -z "$opt" || ! "$opt" =~ ^[0-9]+$ ]]; then
|
if [[ -n "$opt" ]]; then
|
||||||
echo "Invalid selection. Please choose a valid number."
|
TARGET_STORAGE="$opt"
|
||||||
else
|
|
||||||
TARGET_STORAGE=$opt
|
|
||||||
break
|
break
|
||||||
|
else
|
||||||
|
echo "Invalid selection. Try again."
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user