fix os_select
This commit is contained in:
parent
0cee46802b
commit
db8500ee81
@ -1095,20 +1095,25 @@ select_distribution() {
|
|||||||
|
|
||||||
while [[ -z "$var_os" ]]; do
|
while [[ -z "$var_os" ]]; do
|
||||||
if [[ "$default" == "debian" ]]; then
|
if [[ "$default" == "debian" ]]; then
|
||||||
|
exec 3>&1
|
||||||
result=$(dialog --backtitle "[dev] Proxmox VE Helper Scripts" \
|
result=$(dialog --backtitle "[dev] Proxmox VE Helper Scripts" \
|
||||||
--title "DISTRIBUTION" \
|
--title "DISTRIBUTION" \
|
||||||
--radiolist "Choose Distribution:" 10 58 2 \
|
--radiolist "Choose Distribution:" 10 58 2 \
|
||||||
"debian" "" on \
|
"debian" "" on \
|
||||||
"ubuntu" "" off \
|
"ubuntu" "" off \
|
||||||
--extra-button --extra-label "Back" --ok-label "Next" --cancel-label "Exit" 3>&1 1>&2 2>&3)
|
--ok-label "Next" --cancel-label "Exit" \
|
||||||
|
--extra-button --extra-label "Back" \
|
||||||
|
2>&1 1>&3)
|
||||||
|
exitcode=$?
|
||||||
|
exec 3>&-
|
||||||
else
|
else
|
||||||
exec 3>&1
|
exec 3>&1
|
||||||
result=$(dialog \
|
result=$(dialog \
|
||||||
--backtitle "[dev] Proxmox VE Helper Scripts" \
|
--backtitle "[dev] Proxmox VE Helper Scripts" \
|
||||||
--title "DISTRIBUTION" \
|
--title "DISTRIBUTION" \
|
||||||
--radiolist "Choose Distribution:" 10 58 2 \
|
--radiolist "Choose Distribution:" 10 58 2 \
|
||||||
"debian" "" on \
|
"debian" "" off \
|
||||||
"ubuntu" "" off \
|
"ubuntu" "" on \
|
||||||
--ok-label "Next" \
|
--ok-label "Next" \
|
||||||
--cancel-label "Exit" \
|
--cancel-label "Exit" \
|
||||||
--extra-button --extra-label "Back" \
|
--extra-button --extra-label "Back" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user