From 39cc022eebd34a40a4781c1abd53cfebd031646f Mon Sep 17 00:00:00 2001 From: ferreo Date: Sun, 4 Aug 2024 17:44:49 +0200 Subject: [PATCH] Update main.sh --- main.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.sh b/main.sh index 1d61f99..8a01211 100755 --- a/main.sh +++ b/main.sh @@ -18,10 +18,9 @@ s{^(Build-Depends:\s*\n)(.+?)(\n\S)}{ my $start = $1; my $deps = $2; my $end = $3; - $deps =~ s/^\s+//mg; - my @items = grep { !/^(cargo|rustc|rust-all)$/ } - split /,\s*\n?\s*/, $deps; - $start . join(",\n ", @items) . $end; + my @items = grep { !/^\s*(cargo|rustc|rust-all)\s*$/ } + split /,\s*\n/, $deps; + $start . join(",\n", @items) . $end; }ems' ./debian/control > ./debian/control.tmp && mv ./debian/control.tmp ./debian/control apt-get build-dep ./ -y apt-get install curl -y