File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -418,10 +418,8 @@ CARGO_LOCAL_INSTALL_SCRIPT="${CARGO_LOCAL_INSTALL_DIR}/install.sh"
418
418
419
419
# Fetch the package.
420
420
download_package () {
421
- remote_url=" $1 "
422
- tarball_name=" $2 "
423
- remote_tarball=" ${remote_url} /${tarball_name} "
424
- local_tarball=" ${CFG_TMP_DIR} /${tarball_name} "
421
+ remote_tarball=" $1 "
422
+ local_tarball=" $2 "
425
423
426
424
msg " Downloading ${remote_tarball} to ${local_tarball} "
427
425
@@ -469,14 +467,17 @@ install_packages() {
469
467
mkdir -p " ${CFG_TMP_DIR} "
470
468
need_ok " failed to create create temporary installation directory"
471
469
470
+ RUST_LOCAL_TARBALL=" ${CFG_TMP_DIR} /${RUST_TARBALL_NAME} "
471
+ CARGO_LOCAL_TARBALL=" ${CFG_TMP_DIR} /${CARGO_TARBALL_NAME} "
472
+
472
473
download_package \
473
- " ${RUST_URL} " \
474
- " ${RUST_TARBALL_NAME } "
474
+ " ${RUST_URL} / ${RUST_TARBALL_NAME} " \
475
+ " ${RUST_LOCAL_TARBALL } "
475
476
476
477
if [ -z " ${CFG_DISABLE_CARGO} " ]; then
477
478
download_package \
478
- " ${CARGO_URL} " \
479
- " ${CARGO_TARBALL_NAME } "
479
+ " ${CARGO_URL} / ${CARGO_TARBALL_NAME} " \
480
+ " ${CARGO_LOCAL_TARBALL } "
480
481
fi
481
482
482
483
install_package \
You can’t perform that action at this time.
0 commit comments