mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-05 07:48:58 +00:00
feat(scripts): have is now x-have script
This commit is contained in:
@@ -6,7 +6,7 @@ source "$HOME/.dotfiles/scripts/shared.sh"
|
||||
|
||||
msg "Starting to install rust/cargo packages"
|
||||
|
||||
! have cargo && {
|
||||
[[ $(x-have "cargo") == "1" ]] && {
|
||||
msg "cargo could not be found. installing cargo with rustup.rs"
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user