Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Wing924/d2r-wing into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Wing924 committed Oct 14, 2022
2 parents e6919a2 + 36a8e92 commit 3dd0f08
Show file tree
Hide file tree
Showing 2 changed files with 1,416 additions and 1,416 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cat > "$levels_json"
for i in $(seq 0 2 ${#NEW_KEYS[*]}); do
act="${NEW_KEYS[$i]}"
key="${NEW_KEYS[$(($i + 1))]}"
cat "$levels_json" | jq ".[] | select(.Key == \"$key\") | (.Key |= \"act$act \" + .) | (.id |= -1 + .)"
cat "$levels_json" | jq ".[] | select(.Key == \"$key\") | (.Key |= \"act$act \" + .) | (.id |= -1)"
done | jq -s > "$new_keys_json"

cat "$levels_json" "$new_keys_json" | jq '.[]' | jq -s
Loading

0 comments on commit 3dd0f08

Please sign in to comment.