From 8e0577e69e990d632b6833df4dfeb4bf2a40e3a7 Mon Sep 17 00:00:00 2001 From: olf Date: Sat, 18 Apr 2020 01:53:22 +0200 Subject: [PATCH] Update sfos-upgrade --- usr/bin/sfos-upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/bin/sfos-upgrade b/usr/bin/sfos-upgrade index 7bbad30..1a0b43d 100644 --- a/usr/bin/sfos-upgrade +++ b/usr/bin/sfos-upgrade @@ -71,7 +71,7 @@ compare_versions () a_substring="$(echo "$version_a" | cut -s -f "$field_num" -d '.')" b_substring="$(echo "$version_b" | cut -s -f "$field_num" -d '.')" if [ "$a_substring" != "$b_substring" ] - then + then # When different, ... if [ "$a_substring" -lt "$b_substring" ] then comparison="l" elif [ "$a_substring" -gt "$b_substring" ] @@ -81,7 +81,7 @@ compare_versions () retc=1 comparison="x" fi - break + break # ... jump out of the loop. fi done echo "$comparison$field_num"