install_rust_cargo
"/home/yossef/notes/git/scripts/install_rust_cargo.md"
path: git/scripts/install_rust_cargo.md
- **fileName**: install_rust_cargo
- **Created on**: 2025-03-26 15:08:14
#!/usr/bin/env bash
_install() {
if _commend_exists cargo; then
printf 'commend found cargo'
exit 1
fi
printf "starting install cargo and rust"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
if [[ $? == 0 ]]; then
printf "install successfuly rust and cargo"
else
printf "error happend in install cargo and rust"
fi
}
_install
continue:./_install_shell.md
before:./install_qutebrowser.md