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: "
|
||||
|
||||
select opt in $target_storages; do
|
||||
if [[ -z "$opt" || ! "$opt" =~ ^[0-9]+$ ]]; then
|
||||
echo "Invalid selection. Please choose a valid number."
|
||||
else
|
||||
TARGET_STORAGE=$opt
|
||||
if [[ -n "$opt" ]]; then
|
||||
TARGET_STORAGE="$opt"
|
||||
break
|
||||
else
|
||||
echo "Invalid selection. Try again."
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user