diff options
-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 |