CI: fix regex pattern in free additional disk space step

This commit is contained in:
Henrik Grimler 2022-04-28 09:31:49 +02:00
parent 7a687b2656
commit b4a3d50955
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ jobs:
- name: Free additional disk space (if necessary)
run: |
if grep -qP '[^rust$|^rustc-nightly$]' ./built_termux-main_packages.txt ; then
if grep -q '^rust$\|^rustc-nightly$' ./built_termux-main_packages.txt; then
echo "Free additional disk space on host"
sudo apt purge -yq $(dpkg -l | grep '^ii' | awk '{ print $2 }' | grep -P '(cabal-|dotnet-|ghc-|libmono|php)') \
liblldb-6.0 libllvm6.0:amd64 mono-runtime-common monodoc-manual powershell ruby