Explorar el Código

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 hace 10 meses
padre
commit
168139e234
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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