mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-28 01:26:48 +00:00
5b9916e34b
Fixes shellcheck errors in script/* Adds a couple trailing newlines. Adds `script/shellcheck-scripts` and associated CI machinery. Current set ultra-conservative, does not output warnings, only errors.
17 lines
272 B
Bash
Executable file
17 lines
272 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
if [[ $# -ne 1 ]]; then
|
|
echo "Usage: $0 <crate_name>" >&2
|
|
exit 1
|
|
fi
|
|
|
|
CRATE_NAME=$1
|
|
|
|
cargo metadata \
|
|
--no-deps \
|
|
--format-version=1 \
|
|
| jq \
|
|
--raw-output \
|
|
".packages[] | select(.name == \"${CRATE_NAME}\") | .version"
|