mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-07-17 19:42:02 +00:00
Fix incorrectly randomize appid list order
This commit is contained in:
parent
311434c3da
commit
8b0a3c7bb0
1 changed files with 2 additions and 2 deletions
|
|
@ -237,7 +237,7 @@ checkupdates_runner:
|
||||||
script:
|
script:
|
||||||
# Get app IDs in this batch
|
# Get app IDs in this batch
|
||||||
- |
|
- |
|
||||||
metadata_files=$( ls metadata/*.yml | sort -R )
|
metadata_files=(metadata/*.yml)
|
||||||
declare -a APPIDS
|
declare -a APPIDS
|
||||||
for file in ${metadata_files}
|
for file in ${metadata_files}
|
||||||
do
|
do
|
||||||
|
|
@ -247,7 +247,7 @@ checkupdates_runner:
|
||||||
done
|
done
|
||||||
- export APPIDS_COUNT=${#APPIDS[@]}
|
- export APPIDS_COUNT=${#APPIDS[@]}
|
||||||
- export APPIDS_BATCH_SIZE=$(($APPIDS_COUNT / $CI_NODE_TOTAL + 1))
|
- export APPIDS_BATCH_SIZE=$(($APPIDS_COUNT / $CI_NODE_TOTAL + 1))
|
||||||
- export CHECKUPDATES_APPIDS=${APPIDS[@]:$((($CI_NODE_INDEX - 1) * $APPIDS_BATCH_SIZE)):$(($CI_NODE_INDEX * $APPIDS_BATCH_SIZE))}
|
- export CHECKUPDATES_APPIDS=$(${APPIDS[@]:$((($CI_NODE_INDEX - 1) * $APPIDS_BATCH_SIZE)):$(($CI_NODE_INDEX * $APPIDS_BATCH_SIZE))})
|
||||||
|
|
||||||
- echo $APPIDS_COUNT
|
- echo $APPIDS_COUNT
|
||||||
- echo $APPIDS_BATCH_SIZE
|
- echo $APPIDS_BATCH_SIZE
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue