Skip to content

Commit 5f645ad

Browse files
Merge pull request #159 from AmedeeBulle/osinfo
fix(olss): 🐛 osinfo-query sorts alphabetically.
2 parents fbb9311 + 75c6a06 commit 5f645ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

oracle-linux-image-tools/bin/build-image.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ load_env() {
196196
if [[ -z ${OS_VARIANT} ]]; then
197197
OS_VARIANT=$(osinfo-query os --fields=short-id vendor="Oracle America" |
198198
grep "ol${ORACLE_RELEASE}\." |
199+
sort -V |
199200
tail -1 |
200201
sed -e 's/ //g')
201202
fi

0 commit comments

Comments
 (0)