From 7d707221615d2f6f2e7c41f61203a20dd330a341 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 6 Jun 2026 01:48:49 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=20I've=20fixed=20the=20missing=20e?= =?UTF-8?q?nd-of-options=20indicator=20in=20the=20search=20command.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: savvides <1580637+savvides@users.noreply.github.com> --- bin/idstack-learnings-search | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/idstack-learnings-search b/bin/idstack-learnings-search index 94cc40f..4d87013 100755 --- a/bin/idstack-learnings-search +++ b/bin/idstack-learnings-search @@ -72,19 +72,19 @@ for m in matches[-limit:]: " 2>/dev/null || { # Fallback: basic grep if [ -n "$KEYWORD" ]; then - cat $SOURCES 2>/dev/null | grep -i "$KEYWORD" | tail -"$LIMIT" + cat $SOURCES 2>/dev/null | grep -i -- "$KEYWORD" | tail -n "$LIMIT" elif [ -n "$TYPE" ]; then - cat $SOURCES 2>/dev/null | grep "\"type\":\"$TYPE\"" | tail -"$LIMIT" + cat $SOURCES 2>/dev/null | grep -- "\"type\":\"$TYPE\"" | tail -n "$LIMIT" else - cat $SOURCES 2>/dev/null | tail -"$LIMIT" + cat $SOURCES 2>/dev/null | tail -n "$LIMIT" fi } else if [ -n "$KEYWORD" ]; then - cat $SOURCES 2>/dev/null | grep -i "$KEYWORD" | tail -"$LIMIT" + cat $SOURCES 2>/dev/null | grep -i -- "$KEYWORD" | tail -n "$LIMIT" elif [ -n "$TYPE" ]; then - cat $SOURCES 2>/dev/null | grep "\"type\":\"$TYPE\"" | tail -"$LIMIT" + cat $SOURCES 2>/dev/null | grep -- "\"type\":\"$TYPE\"" | tail -n "$LIMIT" else - cat $SOURCES 2>/dev/null | tail -"$LIMIT" + cat $SOURCES 2>/dev/null | tail -n "$LIMIT" fi fi