patches and low-level development discussion
 help / color / mirror / code / Atom feed
* [PATCH v2 1/2] Documentation/scripts: fix shellcheck issues
@ 2022-11-18 10:09 Alyssa Ross
  2022-11-18 10:09 ` [PATCH v2 2/2] nix/checks.nix: shellcheck more files Alyssa Ross
  2022-11-18 16:38 ` [PATCH v2 1/2] Documentation/scripts: fix shellcheck issues Alyssa Ross
  0 siblings, 2 replies; 5+ messages in thread
From: Alyssa Ross @ 2022-11-18 10:09 UTC (permalink / raw)
  To: devel; +Cc: Henri Rosten

There's an open issue about teaching shellcheck to automatically
recognize nix-shell shebangs:
https://github.com/koalaman/shellcheck/issues/1210

Signed-off-by: Alyssa Ross <alyssa.ross@unikie.com>
---
v2: no changes

 Documentation/scripts/build.sh       | 2 +-
 Documentation/scripts/update-gems.sh | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/scripts/build.sh b/Documentation/scripts/build.sh
index 85bd5a5..e6a2cd8 100755
--- a/Documentation/scripts/build.sh
+++ b/Documentation/scripts/build.sh
@@ -4,7 +4,7 @@
 
 cd "$(dirname "$0")/.."
 
-if [ ! -w . -a ! -w .jekyll-cache ]; then
+if [ ! -w . ] && [ ! -w .jekyll-cache ]; then
 	JEKYLLFLAGS=--disable-disk-cache
 fi
 
diff --git a/Documentation/scripts/update-gems.sh b/Documentation/scripts/update-gems.sh
index 7ba98d8..d70f55f 100755
--- a/Documentation/scripts/update-gems.sh
+++ b/Documentation/scripts/update-gems.sh
@@ -1,8 +1,11 @@
 #! /usr/bin/env nix-shell
 #! nix-shell -i bash -p bundler bundix
+
 # SPDX-FileCopyrightText: 2022 Unikie
 # SPDX-License-Identifier: EUPL-1.2+
 
+# shellcheck shell=bash
+
 set -euo pipefail
 
 bundle lock --update
-- 
2.35.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-18 16:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-18 10:09 [PATCH v2 1/2] Documentation/scripts: fix shellcheck issues Alyssa Ross
2022-11-18 10:09 ` [PATCH v2 2/2] nix/checks.nix: shellcheck more files Alyssa Ross
2022-11-18 11:00   ` Henri Rosten
2022-11-18 16:38   ` Alyssa Ross
2022-11-18 16:38 ` [PATCH v2 1/2] Documentation/scripts: fix shellcheck issues Alyssa Ross

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).