diff options
author | Matthias Dienstbier <mdienstbier@googlemail.com> | 2010-03-11 15:33:43 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2010-03-24 15:29:54 +0100 |
commit | be992145a5d868fe1fc9eab1c93c31eb283b2bc7 (patch) | |
tree | dac24a3a805c37715f993510d60a25ef01ea03c5 | |
parent | af09e1fa349d31f579ef550804ea7f8c75c1278c (diff) |
fix return codes in _dia_ask_datetime
-rw-r--r-- | lib-ui.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 <TAB> 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 <TAB> 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 <TAB> 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 <TAB> 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. |