From d5795ea791bd49a8ef30f1c00c811f3f4975770e Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 1 Apr 2025 06:09:08 -0300 Subject: src/content/: Tweak asciidoc leftovers --- src/content/tils/2020/12/15/shellcheck-repo.adoc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/content/tils/2020/12/15/shellcheck-repo.adoc') diff --git a/src/content/tils/2020/12/15/shellcheck-repo.adoc b/src/content/tils/2020/12/15/shellcheck-repo.adoc index 960812e..e86cbff 100644 --- a/src/content/tils/2020/12/15/shellcheck-repo.adoc +++ b/src/content/tils/2020/12/15/shellcheck-repo.adoc @@ -23,7 +23,8 @@ run ShellCheck on. This first version worked fine, as all my scripts had the `.sh' ending. But I recently added some scripts without any extension, so `assert-shellcheck.sh` -called for a second version. The first attempt was to try grepping the shebang line: +called for a second version. The first attempt was to try grepping the shebang +line: [source,shell] ---- @@ -123,7 +124,7 @@ scripts/songbooks.in scripts/with-container.sh ---- -Great! Only `TODOs.org` is missing, but the script is much better: instead of +Great! Only `TODOs.org` is missing, but the script is much better: instead of matching against any part of the file that may have a shebang-like line, we only look for the first. Let's put it back into the `assert-shellcheck.sh` file and use `NULL` for separators to accommodate files with spaces in the name: -- cgit v1.2.3