Use $rust_stable

This commit is contained in:
Michael Vines
2020-04-15 17:07:47 -07:00
parent 530c542002
commit d567799d43

View File

@ -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"