Bugfix: pri accepted priorities of more than a single letter
e.g. todo.sh pri 1 aa Signed-off-by: Gina Trapani <ginatrapani@gmail.com>
This commit is contained in:
committed by
Gina Trapani
parent
680e93e737
commit
4d3b7472ff
2
todo.sh
2
todo.sh
@@ -831,7 +831,7 @@ note: PRIORITY must be anywhere from A to Z."
|
||||
|
||||
[ "$#" -ne 3 ] && die "$errmsg"
|
||||
[[ "$item" = +([0-9]) ]] || die "$errmsg"
|
||||
[[ "$newpri" = +([A-Z]) ]] || die "$errmsg"
|
||||
[[ "$newpri" = @([A-Z]) ]] || die "$errmsg"
|
||||
|
||||
sed -e $item"s/^(.) //" -e $item"s/^/($newpri) /" "$TODO_FILE" > /dev/null 2>&1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user