Tweak bat and nvm install conditions
This commit is contained in:
parent
01e599b4c0
commit
166bcf6c4d
4
copy.sh
4
copy.sh
|
@ -32,10 +32,10 @@ else
|
|||
echo "installed."
|
||||
fi
|
||||
. "$HOME/.cargo/env"
|
||||
if command -v cargo; then
|
||||
if command -v cargo && ! command -v bat; then
|
||||
cargo install bat
|
||||
fi
|
||||
if ! command -v nvm; then
|
||||
if ! test -d "$HOME/.nvm"; then
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
|
|
Loading…
Reference in New Issue