diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-07-26 10:33:25 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-07-26 10:33:25 -0300 |
commit | ae3d8473f8dec95c159a66170630bdac38e7ae3d (patch) | |
tree | 633802f2193eb47634e7d708c06b189b51b2a828 /collector | |
parent | 2b2b8f0675f4bdf31fc4c6a60e2f66e57b82e2c0 (diff) | |
download | scripts-ae3d8473f8dec95c159a66170630bdac38e7ae3d.tar.gz scripts-ae3d8473f8dec95c159a66170630bdac38e7ae3d.tar.bz2 |
Fix: collector: match tasks and regular items
Diffstat (limited to 'collector')
-rwxr-xr-x | collector | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -24,12 +24,12 @@ if [ -z "$ACTION" ] || [ "$ACTION" == "view" ]; then cat "$COLLECTOR_FILE" elif [ "$ACTION" == "add" ]; then shift - echo "* [ ] $*" >> "$COLLECTOR_FILE" + echo "* $*" >> "$COLLECTOR_FILE" elif [ "$ACTION" == "list" ]; then - if grep -q -e "^\* \[ \]" "$COLLECTOR_FILE"; then + if grep -q -e "^ *\* " "$COLLECTOR_FILE"; then echo "Collected items at $COLLECTOR_FILE:" echo "" - grep -e "^\* \[ \]" "$COLLECTOR_FILE" + grep -e "^ *\* " "$COLLECTOR_FILE" echo "" fi elif [ "$ACTION" == "edit" ]; then |