Make .cargo/bin if it does not exist (#375)

This commit is contained in:
Christian Legnitto 2019-06-18 23:10:55 -04:00 committed by GitHub
parent c2f119690b
commit 4d9ec64eae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,5 +14,6 @@ fi
curl https://github.com/sagiegurari/cargo-make/releases/download/${1}/cargo-make-v${1}-${2}.zip -sSfL -o /tmp/cargo-make.zip; curl https://github.com/sagiegurari/cargo-make/releases/download/${1}/cargo-make-v${1}-${2}.zip -sSfL -o /tmp/cargo-make.zip;
unzip /tmp/cargo-make.zip; unzip /tmp/cargo-make.zip;
mkdir -p "$HOME/.cargo/bin";
mv cargo-make-*/* $HOME/.cargo/bin; mv cargo-make-*/* $HOME/.cargo/bin;
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"