Ver Fonte

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 há 10 meses atrás
pai
commit
168139e234
1 ficheiros alterados com 1 adições e 1 exclusões
  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