Skip to content

Commit

Permalink
bash debugging... do I need to declare the variable as an array first?
Browse files Browse the repository at this point in the history
  • Loading branch information
dherman committed Mar 25, 2024
1 parent daccae0 commit 14c54bd
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 85 deletions.
14 changes: 7 additions & 7 deletions dist/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
},
"homepage": "https://github.com/dherman/neon-rs#readme",
"optionalDependencies": {
"@cargo-messages/android-arm-eabi": "0.1.55",
"@cargo-messages/darwin-arm64": "0.1.55",
"@cargo-messages/darwin-x64": "0.1.55",
"@cargo-messages/linux-arm-gnueabihf": "0.1.55",
"@cargo-messages/linux-x64-gnu": "0.1.55",
"@cargo-messages/win32-arm64-msvc": "0.1.55",
"@cargo-messages/win32-x64-msvc": "0.1.55"
"@cargo-messages/android-arm-eabi": "0.1.56",
"@cargo-messages/darwin-arm64": "0.1.56",
"@cargo-messages/darwin-x64": "0.1.56",
"@cargo-messages/linux-arm-gnueabihf": "0.1.56",
"@cargo-messages/linux-x64-gnu": "0.1.56",
"@cargo-messages/win32-arm64-msvc": "0.1.56",
"@cargo-messages/win32-x64-msvc": "0.1.56"
}
}
56 changes: 28 additions & 28 deletions dist/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions src/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"dependencies": {
"@neon-rs/load": "^0.0.181",
"@neon-rs/manifest": "^0.0.5",
"cargo-messages": "^0.1.55",
"cargo-messages": "^0.1.56",
"chalk": "^5.2.0",
"command-line-args": "^5.2.1",
"command-line-commands": "^3.0.2",
Expand All @@ -65,12 +65,12 @@
"temp": "^0.9.4"
},
"optionalDependencies": {
"@cargo-messages/android-arm-eabi": "0.1.55",
"@cargo-messages/darwin-arm64": "0.1.55",
"@cargo-messages/darwin-x64": "0.1.55",
"@cargo-messages/linux-arm-gnueabihf": "0.1.55",
"@cargo-messages/linux-x64-gnu": "0.1.55",
"@cargo-messages/win32-arm64-msvc": "0.1.55",
"@cargo-messages/win32-x64-msvc": "0.1.55"
"@cargo-messages/android-arm-eabi": "0.1.56",
"@cargo-messages/darwin-arm64": "0.1.56",
"@cargo-messages/darwin-x64": "0.1.56",
"@cargo-messages/linux-arm-gnueabihf": "0.1.56",
"@cargo-messages/linux-x64-gnu": "0.1.56",
"@cargo-messages/win32-arm64-msvc": "0.1.56",
"@cargo-messages/win32-x64-msvc": "0.1.56"
}
}
7 changes: 4 additions & 3 deletions src/cli/update-cargo-messages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ echo '[update-cargo-messages.sh] platforms as line-separate list:'

(cd ../../pkgs/cargo-messages && node ../../dist/cli list-platforms) | jq -r 'keys | join("\n")'

read -a platforms <<< $( (cd ../../pkgs/cargo-messages && node ../../dist/cli list-platforms) | jq -r 'keys | join("\n")' )
declare -a allplatforms
read -a allplatforms <<< $( (cd ../../pkgs/cargo-messages && node ../../dist/cli list-platforms) | jq -r 'keys | join("\n")' )

echo "[update-cargo-messages.sh] platforms: ${platforms[@]}"
echo "[update-cargo-messages.sh] platforms: ${allplatforms[@]}"

for platform in ${platforms[@]} ; do
for platform in ${allplatforms[@]} ; do
echo "[update-cargo-messages.sh] npm i --omit=optional -E -O @cargo-messages/$platform@$cargo_messages_version"
npm i --omit=optional -E -O @cargo-messages/$platform@$cargo_messages_version || echo "❌ failed to update @cargo-messages/$platform"
done
Expand Down
78 changes: 39 additions & 39 deletions src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 14c54bd

Please sign in to comment.