Skip to content

Commit

Permalink
Update sfos-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Olf0 authored Apr 17, 2020
1 parent e995e2b commit 8e0577e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/bin/sfos-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand All @@ -81,7 +81,7 @@ compare_versions ()
retc=1
comparison="x"
fi
break
break # ... jump out of the loop.
fi
done
echo "$comparison$field_num"
Expand Down

0 comments on commit 8e0577e

Please sign in to comment.