From be992145a5d868fe1fc9eab1c93c31eb283b2bc7 Mon Sep 17 00:00:00 2001 From: Matthias Dienstbier Date: Thu, 11 Mar 2010 15:33:43 +0100 Subject: fix return codes in _dia_ask_datetime --- lib-ui.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib-ui.sh b/lib-ui.sh index 4a26801..b188c7a 100644 --- a/lib-ui.sh +++ b/lib-ui.sh @@ -300,8 +300,9 @@ _dia_ask_checklist () _dia_ask_datetime () { # display and ask to set date/time - local _date=$(dialog --calendar "Set the date.\nUse to navigate and arrow keys to change values." 0 0 0 0 0 || return 1) # form like: 07/12/2008 - local _time=$(dialog --timebox "Set the time.\nUse to navigate and up/down to change values." 0 0 || return 1) # form like: 15:26:46 + local _date _time + _date=$(_dia_dialog --calendar "Set the date.\nUse to navigate and arrow keys to change values." 0 0 0 0 0) || return 1 # form like: 07/12/2008 + _time=$(_dia_dialog --timebox "Set the time.\nUse to navigate and up/down to change values." 0 0) || return 1 # form like: 15:26:46 debug 'UI' "Date as specified by user $_date time: $_time" # DD/MM/YYYY hh:mm:ss -> MMDDhhmmYYYY.ss (date default format, set like date $ANSWER_DATETIME) Not enabled because there is no use for it i think. -- cgit v1.2.2