From 7b5a463e1865a9e979d2f176e6cf3f99bc37859a Mon Sep 17 00:00:00 2001 From: Kirill Lykov Date: Thu, 22 Dec 2022 16:57:21 +0000 Subject: [PATCH] replaced ./cargo with cargo in build docs --- docs/build-cli-usage.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/build-cli-usage.sh b/docs/build-cli-usage.sh index 17c7d1de0cbbdc..dc767c638c67d7 100755 --- a/docs/build-cli-usage.sh +++ b/docs/build-cli-usage.sh @@ -2,7 +2,6 @@ set -e cd "$(dirname "$0")" -cargo=../cargo # shellcheck source=ci/rust-version.sh source ../ci/rust-version.sh stable @@ -10,9 +9,9 @@ source ../ci/rust-version.sh stable : "${rust_stable:=}" # Pacify shellcheck # pre-build with output enabled to appease Travis CI's hang check -"$cargo" build -p solana-cli +cargo build -p solana-cli -usage=$("$cargo" stable -q run -p solana-cli -- -C ~/.foo --help | sed -e 's|'"$HOME"'|~|g' -e 's/[[:space:]]\+$//') +usage=$(cargo -q run -p solana-cli -- -C ~/.foo --help | sed -e 's|'"$HOME"'|~|g' -e 's/[[:space:]]\+$//') out=${1:-src/cli/usage.md} @@ -40,6 +39,6 @@ in_subcommands=0 while read -r subcommand rest; do [[ $subcommand == "SUBCOMMANDS:" ]] && in_subcommands=1 && continue if ((in_subcommands)); then - section "$("$cargo" stable -q run -p solana-cli -- help "$subcommand" | sed -e 's|'"$HOME"'|~|g' -e 's/[[:space:]]\+$//')" "####" >> "$out" + section "$(cargo -q run -p solana-cli -- help "$subcommand" | sed -e 's|'"$HOME"'|~|g' -e 's/[[:space:]]\+$//')" "####" >> "$out" fi done <<<"$usage">>"$out"