Skip to content

Commit b74e5f7

Browse files
committed
missing early return
1 parent b284eea commit b74e5f7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/patch-realsense-ubuntu-L4T.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function version_lt {
3232
IFS='.' read -r -a v2 <<< "$2"
3333
for i in 0 1 2; do
3434
[[ v1[i] -lt v2[i] ]] && return 0
35+
[[ v1[i] -gt v2[i] ]] && return 1
3536
done
3637
return 1
3738
}

0 commit comments

Comments
 (0)