Browse Source

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 tháng trước cách đây
mục cha
commit
168139e234
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      .github/workflows/build.yml

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

@@ -514,7 +514,7 @@ jobs:
           if [ -f "build/build.sh" ]; then
           if [ -f "build/build.sh" ]; then
             echo "sound/drivers/snd-aloop.ko" >> common/android/gki_aarch64_modules
             echo "sound/drivers/snd-aloop.ko" >> common/android/gki_aarch64_modules
           else
           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
           fi
           
           
           # Add symbols to abi_gki_aarch64
           # Add symbols to abi_gki_aarch64