iankelling.org
/
git
/
buildscripts
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes
[buildscripts]
/
rust
diff --git
a/rust
b/rust
index 08aea33679f53721af1df82b812a22c90ed1d33f..ceaf4c21a4832a0ca971f58bb80c276c6b26dedc 100755
(executable)
--- a/
rust
+++ b/
rust
@@
-16,13
+16,15
@@
source /a/bin/distro-functions/src/package-manager-abstractions
PATH="$PATH:$HOME/.cargo/bin"
hash -r
PATH="$PATH:$HOME/.cargo/bin"
hash -r
+# todo: this should happen in some kind of sandbox or vm
+
# install rust.
if type -t rustc &>/dev/null; then
rustup update
else
curl https://sh.rustup.rs -sSf | bash -s -- -y
fi
# install rust.
if type -t rustc &>/dev/null; then
rustup update
else
curl https://sh.rustup.rs -sSf | bash -s -- -y
fi
-# todo: update this. updates in rust are stupidly complicate
+
if ! which rg &>/dev/null; then
cargo install ripgrep
fi
if ! which rg &>/dev/null; then
cargo install ripgrep
fi