add abort dialogs

This commit is contained in:
Tobias Powalowski 2023-07-13 15:08:17 +02:00
parent d5aee9780f
commit 5a71444e3b

View file

@ -108,7 +108,7 @@ _dotimeset() {
_CONTINUE=""
while [[ -z "${_CONTINUE}" ]]; do
# display and ask to set date/time
if dialog --calendar "Set the date.\nUse <TAB> to navigate and arrow keys to change values." 0 0 0 0 0 2> ${_ANSWER}; then
if _dialog --title ' Date Setting' --calendar "Set the date.\nUse <TAB> to navigate and arrow keys to change values." 0 0 0 0 0 2> ${_ANSWER}; then
_DATE="$(cat ${_ANSWER})"
_CONTINUE=1
else
@ -117,7 +117,7 @@ _dotimeset() {
done
_CONTINUE=""
while [[ -z "${_CONTINUE}" ]]; do
if dialog --title ' Time Setting ' --timebox "Use <TAB> to navigate and up/down to change values." 0 0 2> ${_ANSWER}; then
if _dialog --title ' Time Setting ' --timebox "Use <TAB> to navigate and up/down to change values." 0 0 2> ${_ANSWER}; then
_TIME="$(cat ${_ANSWER})"
_CONTINUE=1
else