1 Commits

Author SHA1 Message Date
jaandrle 8fe3a87ee2 🐛 📺 Fixes grep info fails 2026-06-11 15:04:57 +02:00
+4 -2
View File
@@ -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]