mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-26 07:14:17 -05:00
fix(installation): Update the MinRustVersion
closes #577df Co-authored-by: Caleb Webber <seeplusplus@users.noreply.github.com>
This commit is contained in:
parent
a9dae71188
commit
21bfb2d477
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ function vercomp($v1, $v2) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$rustVersion = $(rustc --version).Split(" ")[1]
|
$rustVersion = $(rustc --version).Split(" ")[1]
|
||||||
$minRustVersion = "1.31"
|
$minRustVersion = "1.39"
|
||||||
if ((vercomp $rustVersion $minRustVersion) -eq 2) {
|
if ((vercomp $rustVersion $minRustVersion) -eq 2) {
|
||||||
Write-Host "WARNING: Rust version is too old: $rustVersion - needs at least $minRustVersion"
|
Write-Host "WARNING: Rust version is too old: $rustVersion - needs at least $minRustVersion"
|
||||||
Write-Host "Please update Rust with 'rustup update'"
|
Write-Host "Please update Rust with 'rustup update'"
|
||||||
|
|
|
@ -87,7 +87,7 @@ function vercomp() {
|
||||||
}
|
}
|
||||||
|
|
||||||
RustVersion=$(rustc --version | cut -d " " -f 2)
|
RustVersion=$(rustc --version | cut -d " " -f 2)
|
||||||
MinRustVersion=1.31
|
MinRustVersion=1.39
|
||||||
vercomp $RustVersion $MinRustVersion
|
vercomp $RustVersion $MinRustVersion
|
||||||
if [ $? -eq 2 ]
|
if [ $? -eq 2 ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue