packages CI: large package regex use grep -P like the rest

This commit is contained in:
Lucy Phipps 2023-11-03 10:44:28 +00:00 committed by GitHub
parent edd39cacef
commit ad5531d6aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ jobs:
done
if [ ! -z "$packages" ]; then
if grep -q '\(^\|\s\)\(clvk\|dart\|libllvm\|rust\|rustc-nightly\|swift\|tinygo\|wasmer\|zig\|firefox\)$' <<< "$packages"; then
if grep -qP '(^|\s)(clvk|dart|libllvm|rust|rustc-nightly|swift|tinygo|wasmer|zig|firefox)($|\s)' <<< "$packages"; 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)') \