diff options
Diffstat (limited to 'src/content/tils/2020/12')
-rw-r--r-- | src/content/tils/2020/12/15/shellcheck-repo.adoc | 5 |
1 files changed, 3 insertions, 2 deletions
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: |