From 1a28e77f273a037c222b71cacbe3ef0b5bb89b08 Mon Sep 17 00:00:00 2001 From: ferreo Date: Sun, 4 Aug 2024 18:03:41 +0200 Subject: [PATCH] Update main.sh --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index 3383b13..5ce1569 100755 --- a/main.sh +++ b/main.sh @@ -14,7 +14,7 @@ cd cosmic-settings # Get build deps sed -i '/^\s*\(cargo\|rustc\|rust-all\)\s*\(([^)]*)\)\?\s*,\?$/d; s/,\s*\(cargo\|rustc\|rust-all\)\s*\(([^)]*)\)\?\s*,\?//g' ./debian/control -sed -i '2iexport PATH := $(PATH):/root/.cargo/bin\n' ./debian/rules +sed -i '2iexport PATH := $(shell . /root/.cargo/env && echo $$PATH)\nexport $(shell . /root/.cargo/env && env | grep "^CARGO_\|^RUSTUP_" | sed "s/=/:=/")\n' ./debian/rules apt-get build-dep ./ -y apt-get install curl -y curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/root/.cargo sh -s -- -y