diff --git a/main.sh b/main.sh index 7f9a4bf..221095c 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 '2i. "/root/.cargo/env"' ./debian/rules +sed -i '2i$(shell . /root/.cargo/env)' ./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