summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiannasoreil <mokou@fastmail.com>2022-05-17 13:21:18 +0200
committerGitHub <noreply@github.com>2022-05-17 13:21:18 +0200
commit8972e8f5988aaa0f24814d35270ff9296135b972 (patch)
tree56e8f6ab3bcb8eee90e2d0f85e8e2bd2e0c3dc40
parent75b09dd69aa64955e50a33a63db37e896ed2571d (diff)
parent5b940165852772d9a009f2f7db50f0a1bda8fd9d (diff)
Merge pull request #1000 from merelymyself/patch-1
Checks for rustup install in install.sh.
-rwxr-xr-xinstall.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 7d8ac90..f3b3f33 100755
--- a/install.sh
+++ b/install.sh
@@ -25,12 +25,21 @@ else
exit 1
fi
+if [ -x "$(command -v rustup)" ]
+then
+ echo "SUCCESS: rustup is installed"
+else
+ echo "ERROR: rustup does not seem to be installed."
+ echo "Please download rustup using https://rustup.rs!"
+ exit 1
+fi
+
if [ -x "$(command -v rustc)" ]
then
echo "SUCCESS: Rust is installed"
else
echo "ERROR: Rust does not seem to be installed."
- echo "Please download Rust using https://rustup.rs!"
+ echo "Please download Rust using rustup!"
exit 1
fi
@@ -39,7 +48,7 @@ then
echo "SUCCESS: Cargo is installed"
else
echo "ERROR: Cargo does not seem to be installed."
- echo "Please download Rust and Cargo using https://rustup.rs!"
+ echo "Please download Rust and Cargo using rustup!"
exit 1
fi