summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <alyssa.ross@unikie.com>2022-11-18 10:09:46 +0000
committerAlyssa Ross <alyssa.ross@unikie.com>2022-11-18 13:35:11 +0000
commit9f3671abc5512e8d625d92957d3b2d0d4c2ae8b7 (patch)
tree1358e4156e8b37c1785eb89ba15f6902a6853383
parent4ca9933fe8371d148731702ebbe677892f8bc426 (diff)
downloadspectrum-9f3671abc5512e8d625d92957d3b2d0d4c2ae8b7.tar
spectrum-9f3671abc5512e8d625d92957d3b2d0d4c2ae8b7.tar.gz
spectrum-9f3671abc5512e8d625d92957d3b2d0d4c2ae8b7.tar.bz2
spectrum-9f3671abc5512e8d625d92957d3b2d0d4c2ae8b7.tar.lz
spectrum-9f3671abc5512e8d625d92957d3b2d0d4c2ae8b7.tar.xz
spectrum-9f3671abc5512e8d625d92957d3b2d0d4c2ae8b7.tar.zst
spectrum-9f3671abc5512e8d625d92957d3b2d0d4c2ae8b7.zip
Documentation/scripts: fix shellcheck issues
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>
Message-Id: <20221118100947.33597-1-alyssa.ross@unikie.com>
-rwxr-xr-xDocumentation/scripts/build.sh2
-rwxr-xr-xDocumentation/scripts/update-gems.sh3
2 files changed, 4 insertions, 1 deletions
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