Skip to content

Commit

Permalink
repo-update.sh: bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxython committed Aug 24, 2022
1 parent dec2c2f commit 6328d8a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/repo-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,12 @@ jobs:
}
sort_list_files=""
for i in ${copy_list_sort[@]}; do
e=$(echo " ${copy_list_sort[@]}" | grep -o " ${i//-*/}-" | wc -l)
index=$(search_index "$i")
if [[ "$e" != "1" && "$e_old" != "1" ]]; then
sort_list_files+="&&"
else
if [[ "${i#*-}" = "1" ]]; then
sort_list_files+=" ${list_sha[$index]}###"
else
sort_list_files+="&&"
fi
e_old=${e}
sort_list_files+="${list_files[$index]}"
done
Expand Down

0 comments on commit 6328d8a

Please sign in to comment.