patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Alyssa Ross <alyssa.ross@unikie.com>
To: devel@spectrum-os.org
Cc: Henri Rosten <henri.rosten@unikie.com>
Subject: [PATCH 2/2] nix/checks.nix: shellcheck more files
Date: Tue, 15 Nov 2022 10:56:37 +0000	[thread overview]
Message-ID: <20221115105637.298620-2-alyssa.ross@unikie.com> (raw)
In-Reply-To: <20221115105637.298620-1-alyssa.ross@unikie.com>

I didn't realise that bash's ** feature (which matches any depth of
directories) wasn't enabled by default, because it appeared to work,
just didn't find all scripts.

Signed-off-by: Alyssa Ross <alyssa.ross@unikie.com>
Fixes: 169fdd6 ("release.nix: run shellcheck on build scripts")
---
 nix/checks.nix | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nix/checks.nix b/nix/checks.nix
index 9eb261f..b2af72a 100644
--- a/nix/checks.nix
+++ b/nix/checks.nix
@@ -17,6 +17,7 @@
 
       nativeBuildInputs = [ shellcheck ];
     } ''
+      shopt -s globstar
       shellcheck $src/**/*.sh
       touch $out
     ''
-- 
2.35.1



  reply	other threads:[~2022-11-15 10:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-15 10:56 [PATCH 1/2] Documentation/scripts: fix shellcheck issues Alyssa Ross
2022-11-15 10:56 ` Alyssa Ross [this message]
2022-11-16  8:56   ` [PATCH 2/2] nix/checks.nix: shellcheck more files Henri Rosten
2022-11-16 10:40     ` Alyssa Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221115105637.298620-2-alyssa.ross@unikie.com \
    --to=alyssa.ross@unikie.com \
    --cc=devel@spectrum-os.org \
    --cc=henri.rosten@unikie.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).