File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 3
3
set -ex
4
4
5
5
main () {
6
- local tag=v0.3.5
7
- local target=x86_64-unknown-linux-gnu
8
-
9
6
local dependencies=(
10
7
ca-certificates
11
8
curl
@@ -20,8 +17,16 @@ main() {
20
17
fi
21
18
done
22
19
23
- curl -LSfs http://japaric.github.io/trust/install.sh | \
24
- sh -s -- --git japaric/xargo --tag $tag --target $target --to /usr/bin && \
20
+ export RUSTUP_HOME=/tmp/rustup
21
+ export CARGO_HOME=/tmp/cargo
22
+
23
+ curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup-init.sh
24
+ sh rustup-init.sh -y --no-modify-path
25
+ rm rustup-init.sh
26
+
27
+ PATH=" ${CARGO_HOME} /bin:${PATH} " cargo install xargo --root /usr
28
+
29
+ rm -r " ${RUSTUP_HOME} " " ${CARGO_HOME} "
25
30
26
31
apt-get purge --auto-remove -y ${purge_list[@]}
27
32
rm $0
You can’t perform that action at this time.
0 commit comments