From 8fe3a87ee2520b01a624ef05063b6f6d9b3ce3ca Mon Sep 17 00:00:00 2001 From: Jan Andrle Date: Thu, 11 Jun 2026 15:04:57 +0200 Subject: [PATCH] :bug: :tv: Fixes grep info fails --- bs/.common | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bs/.common b/bs/.common index eb581ec..db2c783 100644 --- a/bs/.common +++ b/bs/.common @@ -9,9 +9,11 @@ isHelp() { return 1 } echoReadmeInfo() { - local -r script="bs/${0##*/}" + local -r script="bs/${0##*bs/}" local info - info="$(grep -A1 "## $script" "$readme" | tail -n1)" + if ! info="$(grep -A1 "## $script" "$readme" | tail -n1)"; then + info="No info found in $readme for $script" + fi cat <<-EOF $info Usage: $script [options]