Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove extra `cargo install cargo-about` (#13077)
Marshall Bowers78fd378702bf
diff --git a/script/generate-licenses b/script/generate-licensesindex e1f83f35537..43b2f5c4588 100755--- a/script/generate-licenses+++ b/script/generate-licenses@@ -2,6 +2,7 @@set -euo pipefail+CARGO_ABOUT_VERSION="0.6.1"OUTPUT_FILE="${1:-$(pwd)/assets/licenses.md}"> $OUTPUT_FILE@@ -14,10 +15,14 @@ cat assets/icons/LICENSES >> $OUTPUT_FILEecho -e "# ###### CODE LICENSES ######\n" >> $OUTPUT_FILE-[[ "$(cargo about --version)" == "cargo-about 0.6.1" ]] || cargo install [email protected]+if ! cargo install --list | grep "cargo-about v$CARGO_ABOUT_VERSION" > /dev/null; then+ echo "Installing cargo-about@$CARGO_ABOUT_VERSION..."+ cargo install "cargo-about@$CARGO_ABOUT_VERSION"+else+ echo "cargo-about@$CARGO_ABOUT_VERSION is already installed."+fiecho "Generating cargo licenses"-cargo install cargo-aboutcargo about generate --fail -c script/licenses/zed-licenses.toml script/licenses/template.hbs.md >> $OUTPUT_FILE