From 5da0f6b5cb8ce4d5b08fdcc4619f1e8104c7b1c4 Mon Sep 17 00:00:00 2001 From: vhsdream Date: Sun, 9 Nov 2025 11:40:31 -0500 Subject: [PATCH] Netvisor: fix toolchain parsing --- ct/netvisor.sh | 2 +- install/netvisor-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/netvisor.sh b/ct/netvisor.sh index 68b9ec1ec..304f4ed5a 100644 --- a/ct/netvisor.sh +++ b/ct/netvisor.sh @@ -40,7 +40,7 @@ function update_script() { CLEAN_INSTALL=1 fetch_and_deploy_gh_release "netvisor" "mayanayza/netvisor" "tarball" "latest" "/opt/netvisor" - TOOLCHAIN="$(grep "channel" /opt/netvisor/backend/rust-toolchain.toml | awk '{print $3}')" + TOOLCHAIN="$(grep "channel" /opt/netvisor/backend/rust-toolchain.toml | awk -F\" '{print $2}')" RUST_TOOLCHAIN=$TOOLCHAIN setup_rust mv /opt/netvisor.env /opt/netvisor/.env diff --git a/install/netvisor-install.sh b/install/netvisor-install.sh index c3433b0f9..9887cd099 100644 --- a/install/netvisor-install.sh +++ b/install/netvisor-install.sh @@ -39,7 +39,7 @@ msg_ok "Set up PostgreSQL Database" fetch_and_deploy_gh_release "netvisor" "mayanayza/netvisor" "tarball" "latest" "/opt/netvisor" -TOOLCHAIN="$(grep "channel" /opt/netvisor/backend/rust-toolchain.toml | awk '{print $3}')" +TOOLCHAIN="$(grep "channel" /opt/netvisor/backend/rust-toolchain.toml | awk -F\" '{print $2}')" RUST_TOOLCHAIN=$TOOLCHAIN setup_rust msg_info "Creating frontend UI"