[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 08/18] website-build: check.sh: make it pass shellcheck.
From: |
Denis 'GNUtoo' Carikli |
Subject: |
[PATCH v1 08/18] website-build: check.sh: make it pass shellcheck. |
Date: |
Sat, 25 May 2024 20:25:43 +0200 |
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
---
tests/lint | 3 ++-
website-build/check.sh | 4 +++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/tests/lint b/tests/lint
index 02e625b..ce9d405 100755
--- a/tests/lint
+++ b/tests/lint
@@ -65,7 +65,8 @@ run_shellcheck \
resources/scripts/misc/guix.sh \
resources/scripts/tasks/distclean.sh \
tests/distclean \
- tests/lint
+ tests/lint \
+ website-build/check.sh
printf "+---------------------+\n"
printf "| Lint tests done |\n"
diff --git a/website-build/check.sh b/website-build/check.sh
index 5c421d0..7c1426c 100755
--- a/website-build/check.sh
+++ b/website-build/check.sh
@@ -73,11 +73,13 @@ run_tests()
"${tarball}"
}
+# shellcheck disable=SC2166 # We want to make operator precedence
+# clear.
if [ $# -eq 1 ] && [ "$1" = "-h" -o "$1" == "--help" ] ; then
help
exit 0
elif [ $# -eq 2 ] && [ "$1" = "-t" -o "$1" = "--tarball" ] ; then
- tarball="$(realpath $2)"
+ tarball="$(realpath "$2")"
run_tests "${tarball}"
else
help
--
2.41.0
- [PATCH v1 03/18] website-build: remove unused DOMAIN variable., (continued)
- [PATCH v1 03/18] website-build: remove unused DOMAIN variable., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 04/18] website-build: configure.ac: remove duplicated line breaks., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 06/18] website-build: use a less common port., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 05/18] website-build: make the lighttpd port configurable, Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 07/18] website-build: check.sh: fix line length., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 08/18] website-build: check.sh: make it pass shellcheck.,
Denis 'GNUtoo' Carikli <=
- [PATCH v1 11/18] website-build: Makefile: default to help target., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 09/18] website-build: build.sh: make it pass shellcheck., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 12/18] website-build: README: fix introduction., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 10/18] website-build: targets: rename targets to use build, serve and publish., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 13/18] website-build: configure: make realpath and tar requirement work., Denis 'GNUtoo' Carikli, 2024/05/25