about summary refs log tree commit diff
path: root/scripts/cargo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cargo.sh')
-rwxr-xr-xscripts/cargo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cargo.sh b/scripts/cargo.sh
index 669d2d45b71..1daa5a78f7b 100755
--- a/scripts/cargo.sh
+++ b/scripts/cargo.sh
@@ -4,7 +4,7 @@ dir=$(dirname "$0")
 source "$dir/config.sh"
 
 # read nightly compiler from rust-toolchain file
-TOOLCHAIN=$(cat "$dir/rust-toolchain")
+TOOLCHAIN=$(cat "$dir/rust-toolchain" | grep channel | sed "s/channel = \"\(.*\)\"/\1/")
 
 cmd=$1
 shift || true