Skip to content

Commit

Permalink
linter: address a shellcheck warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
KannarFr authored and guits committed Aug 3, 2023
1 parent ed5d769 commit 9baede8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon/common_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9baede8

Please sign in to comment.