From 9baede8502e27e18519d103584df16a4add2e788 Mon Sep 17 00:00:00 2001 From: "Alexandre DUVAL - @kannarfr" Date: Tue, 1 Aug 2023 15:22:42 +0200 Subject: [PATCH] linter: address a shellcheck warning This addresses a `SC2071` warning. '>' operator is for string comparisons. `-gt` should be used here. See [1] [1] https://www.shellcheck.net/wiki/SC2071 Signed-off-by: Alexandre DUVAL - @kannarfr --- src/daemon/common_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/common_functions.sh b/src/daemon/common_functions.sh index d48058462..3eb4b2922 100755 --- a/src/daemon/common_functions.sh +++ b/src/daemon/common_functions.sh @@ -121,7 +121,7 @@ function dev_part { if [[ $(readlink -f "$option") == "$desired_partition" ]]; then local optprefixlen optprefixlen=$(prefix_length "$option" "$osd_device") - if [[ $optprefixlen > $pfxlen ]]; then + if [[ $optprefixlen -gt $pfxlen ]]; then link=$option pfxlen=$optprefixlen fi