Просмотр исходного кода

ci: fix sed command syntax in build workflow

The previous sed command incorrectly used square brackets for pattern matching when backslashes were needed. This fixes the syntax to properly add the snd-aloop.ko module to the GKI modules list.
TheWildJames 10 месяцев назад
Родитель
Сommit
168139e234
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      .github/workflows/build.yml

+ 1 - 1
.github/workflows/build.yml

@@ -514,7 +514,7 @@ jobs:
           if [ -f "build/build.sh" ]; then
             echo "sound/drivers/snd-aloop.ko" >> common/android/gki_aarch64_modules
           else
-            sed -i '/_COMMON_GKI_MODULES_LIST = \[/,/]/ { /]/ i\    "sound/drivers/snd-aloop.ko", }' common/modules.bzl
+            sed -i '/_COMMON_GKI_MODULES_LIST = \\[/,/\\]/ s/\\]/    "sound\/drivers\/snd-aloop.ko",\\n&/' common/modules.bzl
           fi
           
           # Add symbols to abi_gki_aarch64