Skip to content
Snippets Groups Projects
Commit bfce1f13 authored by Bob Mottram's avatar Bob Mottram
Browse files

Rust in path

parent 7b2336fa
No related branches found
No related tags found
Loading
......@@ -62,6 +62,11 @@ function install_rust {
else
chroot "$rootdir" "$INSTALL_DIR/rustup.sh" -y
fi
if ! grep -q 'RUSTPATH=' ~/.bashrc; then
echo 'export RUSTPATH=/root/.cargo/bin' >> ~/.bashrc
echo "export PATH=\$PATH:\$RUSTPATH" >> ~/.bashrc
fi
}
# NOTE: deliberately there is no "exit 0"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment