From 56af2d62fe74cefaf4fb24d96256c38b407c292f Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Tue, 7 Nov 2023 20:03:17 +0100 Subject: [PATCH] website-build: check.sh: fix missing double quote. Without that fix, using shellcheck on this file results in this warning: In website-build/check.sh line 58: if [ ${nr_files} -eq 1 ] ; then ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Signed-off-by: Denis 'GNUtoo' Carikli Acked-by: Adrien 'neox' Bourmault --- website-build/check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website-build/check.sh b/website-build/check.sh index 9334654..1bff951 100755 --- a/website-build/check.sh +++ b/website-build/check.sh @@ -55,7 +55,7 @@ test_savannah_cvs_constraints() nr_files=$(tar tf "${tarball}" | grep -v '/' | wc -l) - if [ ${nr_files} -eq 1 ] ; then + if [ "${nr_files}" = "1" ] ; then echo "[ OK ] ${name}" else echo "[ !! ] ${name} failed"