dot

packages and services management
Log | Files | Refs | README

commit 7c808a32a41af83dfdeb60ecad92755234332a35
parent f5bbbd8228b5907d12b491f5c3c80223fd16d416
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 11 Mar 2018 21:16:35 +0100

fixed add command

Diffstat:
Mbin/agenda | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/bin/agenda b/bin/agenda @@ -136,13 +136,14 @@ function display(last, line, off) { function add(argc, argv, off) { file = AGENDA "/" argv[2]; - date = argv[3] "T" argv[4]; + date1 = argv[3] "T" argv[4]; + print(date1); - if (argc == 4) + if (argc == 5) date2 = argv[3] "T" argv[4]; - else if (argc == 5) - date2 = argv[3] "T" argv[5]; else if (argc == 6) + date2 = argv[3] "T" argv[5]; + else if (argc == 7) date2 = argv[5] "T" argv[6]; else usage();