Skip to content

Commit

Permalink
AL: add rust install check
Browse files Browse the repository at this point in the history
  • Loading branch information
adalundhe committed Feb 18, 2024
1 parent ac9c659 commit 1378ee9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/rust/.envrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
if [[ ! -e "$HOME/.cargo" ]]; then
echo "Rust not found! Installing rust for $USER"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
echo "Rust installed! Let's go!"
else
echo "Rust install found!"
fi

if [[ -e "$HOME/Cargo.toml" ]]; then
cargo install --path $HOME
else
Expand Down

0 comments on commit 1378ee9

Please sign in to comment.