Skip to content

Commit

Permalink
tools: Tweak script
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Aug 10, 2023
1 parent 785f7a3 commit 70e4493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ echo "============== CHANGELOG =============="
echo "${changes}"
echo "======================================="

metadata="$(cargo metadata --format-version=1 --all-features --no-deps)"
metadata=$(cargo metadata --format-version=1 --all-features --no-deps)
prev_version=''
manifest_paths=()
for id in $(jq <<<"${metadata}" '.workspace_members[]'); do
pkg="$(jq <<<"${metadata}" ".packages[] | select(.id == ${id})")"
pkg=$(jq <<<"${metadata}" ".packages[] | select(.id == ${id})")
publish=$(jq <<<"${pkg}" -r '.publish')
# Publishing is unrestricted if null, and forbidden if an empty array.
if [[ "${publish}" == "[]" ]]; then
Expand Down

0 comments on commit 70e4493

Please sign in to comment.