Use $rust_stable
This commit is contained in:
@ -3,7 +3,7 @@ set -e
|
|||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
usage=$(cargo -q run -p solana-cli -- -C ~/.foo --help | sed -e 's|'"$HOME"'|~|g' -e 's/[[:space:]]\+$//')
|
usage=$(cargo +"$rust_stable" -q run -p solana-cli -- -C ~/.foo --help | sed -e 's|'"$HOME"'|~|g' -e 's/[[:space:]]\+$//')
|
||||||
|
|
||||||
out=${1:-src/cli/usage.md}
|
out=${1:-src/cli/usage.md}
|
||||||
|
|
||||||
@ -31,6 +31,6 @@ in_subcommands=0
|
|||||||
while read -r subcommand rest; do
|
while read -r subcommand rest; do
|
||||||
[[ $subcommand == "SUBCOMMANDS:" ]] && in_subcommands=1 && continue
|
[[ $subcommand == "SUBCOMMANDS:" ]] && in_subcommands=1 && continue
|
||||||
if ((in_subcommands)); then
|
if ((in_subcommands)); then
|
||||||
section "$(cargo -q run -p solana-cli -- help "$subcommand" | sed -e 's|'"$HOME"'|~|g' -e 's/[[:space:]]\+$//')" "####" >> "$out"
|
section "$(cargo +"$rust_stable" -q run -p solana-cli -- help "$subcommand" | sed -e 's|'"$HOME"'|~|g' -e 's/[[:space:]]\+$//')" "####" >> "$out"
|
||||||
fi
|
fi
|
||||||
done <<<"$usage">>"$out"
|
done <<<"$usage">>"$out"
|
||||||
|
Reference in New Issue
Block a user