Skip to content

Commit 6df3e16

Browse files
committed
change order
1 parent 67594f8 commit 6df3e16

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/bkg.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ main() {
140140
sort "$connections" | uniq -c | sort -nr | awk '{print $2}' >"$connections".bak
141141
mv "$connections".bak "$connections"
142142

143-
echo "$(
144-
bash get.sh "$BKG_INDEX_DIR" "$BKG_INDEX" "$BKG_BATCH_FIRST_STARTED" 2>/dev/null
143+
echo "$(
145144
cat "$BKG_OWNERS"
145+
find "$BKG_INDEX_DIR" -mindepth 1 -maxdepth 1 -type d -exec basename {} \; 2>/dev/null | sort -u | awk '{print "0/"$1}'
146146
)" >"$BKG_OWNERS"
147147

148148
: >all_owners_in_db
@@ -175,6 +175,9 @@ main() {
175175
# new connections
176176
cat "$temp_connections"
177177
178+
# owners that have to be updated
179+
bash get.sh "$BKG_INDEX_DIR" "$BKG_INDEX" "$BKG_BATCH_FIRST_STARTED" 2>/dev/null
180+
178181
# connections that have to be updated
179182
grep -Fxf all_owners_tu "$connections"
180183

0 commit comments

Comments
 (0)