Add property order which we use to sort releases historically

This commit is contained in:
Igor Pecovnik
2024-09-27 13:36:10 +02:00
committed by Igor
parent db2b432d18
commit aaf53327a7
10 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1 @@
4

View File

@@ -0,0 +1 @@
3

View File

@@ -0,0 +1 @@
1

View File

@@ -0,0 +1 @@
2

View File

@@ -0,0 +1 @@
5

View File

@@ -0,0 +1 @@
6

View File

@@ -0,0 +1 @@
8

View File

@@ -0,0 +1 @@
9

View File

@@ -0,0 +1 @@
7

View File

@@ -174,7 +174,7 @@ function compile_armbian-bsp-cli() {
# copy distribution support and upgrade status
# this information is used in motd to show status and within armbian-config to perform upgrades
local releases=($(find ${SRC}/config/distributions -mindepth 1 -maxdepth 1 -type d))
local releases=($(find ${SRC}/config/distributions -iname '*order*' -exec echo {} \; -exec cat {} \; | xargs -n2 -d'\n' | sort -nk2 | sed "s/\/order.*//g"))
for i in "${releases[@]}"; do
echo "$(echo $i | sed 's/.*\///')=$(cat $i/support)$(echo ";upgrade" | sed 's/.*\///')=$(cat $i/upgrade)" >> "${destination}"/etc/armbian-distribution-status
done