website-build: check.sh: make it pass shellcheck.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
This commit is contained in:
parent
23ede80adf
commit
5203089a45
|
@ -65,7 +65,8 @@ run_shellcheck \
|
||||||
resources/scripts/misc/guix.sh \
|
resources/scripts/misc/guix.sh \
|
||||||
resources/scripts/tasks/distclean.sh \
|
resources/scripts/tasks/distclean.sh \
|
||||||
tests/distclean \
|
tests/distclean \
|
||||||
tests/lint
|
tests/lint \
|
||||||
|
website-build/check.sh
|
||||||
|
|
||||||
printf "+---------------------+\n"
|
printf "+---------------------+\n"
|
||||||
printf "| Lint tests done |\n"
|
printf "| Lint tests done |\n"
|
||||||
|
|
|
@ -73,11 +73,13 @@ run_tests()
|
||||||
"${tarball}"
|
"${tarball}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# shellcheck disable=SC2166 # We want to make operator precedence
|
||||||
|
# clear.
|
||||||
if [ $# -eq 1 ] && [ "$1" = "-h" -o "$1" == "--help" ] ; then
|
if [ $# -eq 1 ] && [ "$1" = "-h" -o "$1" == "--help" ] ; then
|
||||||
help
|
help
|
||||||
exit 0
|
exit 0
|
||||||
elif [ $# -eq 2 ] && [ "$1" = "-t" -o "$1" = "--tarball" ] ; then
|
elif [ $# -eq 2 ] && [ "$1" = "-t" -o "$1" = "--tarball" ] ; then
|
||||||
tarball="$(realpath $2)"
|
tarball="$(realpath "$2")"
|
||||||
run_tests "${tarball}"
|
run_tests "${tarball}"
|
||||||
else
|
else
|
||||||
help
|
help
|
||||||
|
|
Loading…
Reference in New Issue