more robust test to prevent out of range error

This commit is contained in:
Maarten van Gompel 2021-03-06 23:42:57 +01:00
parent a8aabcc316
commit c9eb7e30b7

View file

@ -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