From c9eb7e30b720783dbe6dd5270be4de0a0649f9c3 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Sat, 6 Mar 2021 23:42:57 +0100 Subject: [PATCH] more robust test to prevent out of range error --- scripts/core/sxmo_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/core/sxmo_common.sh b/scripts/core/sxmo_common.sh index 3a29e7f..7af02b0 100644 --- a/scripts/core/sxmo_common.sh +++ b/scripts/core/sxmo_common.sh @@ -4,7 +4,7 @@ # and defines some common settings # Small optimization to guard against including the script unnecessarily -[ "$SXMO_COMMON_INCLUDED" -eq 1 ] && return 0; +[ "$SXMO_COMMON_INCLUDED" = "1" ] && return 0; # we disable shellcheck SC2034 (variable not used) # for all the variables we define here