aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-07-26 10:33:25 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-07-26 10:33:25 -0300
commitae3d8473f8dec95c159a66170630bdac38e7ae3d (patch)
tree633802f2193eb47634e7d708c06b189b51b2a828
parent2b2b8f0675f4bdf31fc4c6a60e2f66e57b82e2c0 (diff)
downloadscripts-ae3d8473f8dec95c159a66170630bdac38e7ae3d.tar.gz
scripts-ae3d8473f8dec95c159a66170630bdac38e7ae3d.tar.bz2
Fix: collector: match tasks and regular items
-rwxr-xr-xcollector6
1 files changed, 3 insertions, 3 deletions
diff --git a/collector b/collector
index f8545f9..aba470e 100755
--- a/collector
+++ b/collector
@@ -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