packages.yml: fix regexp on big packages

This commit is contained in:
Chongyun Lee 2023-11-22 13:18:40 +08:00
parent a7b2247002
commit 27206e43de
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ jobs:
done
if [ ! -z "$packages" ]; then
if grep -qP "(^|\s)${packages// /($|\s)|(^|\s)}($|\s)" ./scripts/big-pkgs.list; then
if grep -qP "(^|\\s)${packages// /($|\\s)|(^|\\s)}($|\\s)" ./scripts/big-pkgs.list; then
./scripts/setup-ubuntu.sh
sudo apt install ninja-build
sudo apt purge -yq $(dpkg -l | grep '^ii' | awk '{ print $2 }' | grep -P '(aspnetcore|cabal-|dotnet-|ghc-|libmono|php)') \