File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -124,12 +124,14 @@ update_owner() {
124124 find " $BKG_INDEX_DIR /$owner " -type f -name ' *.json' ! -name ' .*' -print0 | xargs -0 jq -cs ' [.] | add' > " $BKG_INDEX_DIR /$owner /.json.tmp"
125125 jq -cs ' { ("package"): . }' " $BKG_INDEX_DIR /$owner /.json.tmp" > " $BKG_INDEX_DIR /$owner /.json"
126126 ytoxt " $BKG_INDEX_DIR /$owner /.json"
127+ jq -c ' .package[]' " $BKG_INDEX_DIR /$owner /.json" > " $BKG_INDEX_DIR /$owner /.json.tmp"
127128 mv -f " $BKG_INDEX_DIR /$owner /.json.tmp" " $BKG_INDEX_DIR /$owner /.json"
128129
129130 echo " Creating $owner repo arrays..."
130131 parallel " jq -c --arg repo {} '[.[] | select(.repo == \$ repo)]' \" $BKG_INDEX_DIR /$owner /.json\" > \" $BKG_INDEX_DIR /$owner /{}/.json.tmp\" " <<< " $owner_repos"
131132 xargs -I {} bash -c " jq -cs '{ (\" package\" ): . }' \" $BKG_INDEX_DIR /$owner /{}/.json.tmp\" > \" $BKG_INDEX_DIR /$owner /{}/.json\" " <<< " $owner_repos"
132133 xargs -I {} bash -c " ytoxt \" $BKG_INDEX_DIR /$owner /{}/.json\" " <<< " $owner_repos"
134+ xargs -I {} bash -c " jq -c '.package[]' \" $BKG_INDEX_DIR /$owner /{}/.json\" > \" $BKG_INDEX_DIR /$owner /{}/.json.tmp\" " <<< " $owner_repos"
133135 xargs -I {} mv -f " $BKG_INDEX_DIR /$owner /{}/.json.tmp" " $BKG_INDEX_DIR /$owner /{}/.json" <<< " $owner_repos"
134136 fi
135137
You can’t perform that action at this time.
0 commit comments