TT#32751 Fix stdout issue with dialog utility

Dialog with --stdout can't reopen terminal in grml 2017.05

Change-Id: Ic3e814c190f696c7e822b9eaf3311437582951a7
changes/45/20245/1
Mykola Malkov 8 years ago
parent 9e60123fc2
commit b0f9b75d8f

@ -103,13 +103,16 @@ prompt_for_target()
echo "${i}" "${disk_info}"
done) )
if ! TARGET_DISK=$(dialog --title "Disk selection" --single-quoted --stdout \
--ok-label OK --cancel-label Exit \
--menu "Please select the target disk for installing Debian/ngcp:" 0 0 0 \
"${DISK_LIST[@]}") ; then
TMP=$(mktemp)
if ! dialog --title "Disk selection" --single-quoted \
--ok-label OK --cancel-label Exit \
--menu "Please select the target disk for installing Debian/ngcp:" 0 0 0 \
"${DISK_LIST[@]}" 2>"${TMP}" ; then
rm -f "${TMP}"
ewarn "Cancelling as requested by user during disk selection." ; eend 0
return 1
fi
TARGET_DISK="$(cat "${TMP}")"; rm -f "${TMP}"
}
# }}}

Loading…
Cancel
Save