Update main.sh

This commit is contained in:
ferreo 2024-08-04 17:37:45 +02:00
parent ece4539272
commit 0f4ca0a6ed

View File

@ -13,9 +13,7 @@ git clone https://github.com/pop-os/cosmic-settings.git
cd cosmic-settings cd cosmic-settings
# Get build deps # Get build deps
perl -0777 -pe ' perl -0777 -pe 's/^(Build-Depends:\s*\n)(.+?)(\n\S)/$1 . join(",\n", grep { !/^\s*(cargo|rustc|rust-all)\s*$/ } split /,\s*\n/, $2) . $3/ems;' ./debian/control > ./debian/control.tmp && mv ./debian/control.tmp ./debian/control
s/^(Build-Depends:\s*\n)(.+?)(\n\S)/$1 . join(",\n", grep { !/^\s*(cargo|rustc|rust-all)\s*$/ } split /,\s*\n/, $2) . $3/ems;
' ./debian/control > ./debian/control.tmp && mv ./debian/control.tmp ./debian/control
apt-get build-dep ./ -y apt-get build-dep ./ -y
apt-get install curl -y apt-get install curl -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/root/.cargo sh -s -- -y curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/root/.cargo sh -s -- -y