ソースを参照

fix(action): correct indentation in sed commands for task_mmu.c modifications

TheWildJames 4 ヶ月 前
コミット
b52f0a80e3
1 ファイル変更2 行追加2 行削除
  1. 2 2
      .github/actions/susfs/action.yml

+ 2 - 2
.github/actions/susfs/action.yml

@@ -162,8 +162,8 @@ runs:
         #fi
         if [ "${{ inputs.sublevel }}" -le "58" ]; then
           echo "Applying task_mmu.c Android 15 6.6 Fake Patch"
-          sed -i "/int ret.*= 0, copied.*= 0;/a unsigned int nr_subpages = __PAGE_SIZE \/ PAGE_SIZE;" fs/proc/task_mmu.c
-          sed -i "/unsigned int nr_subpages = __PAGE_SIZE \/ PAGE_SIZE;/a pagemap_entry_t *res = NULL;" fs/proc/task_mmu.c
+          sed -i "/int ret.*= 0, copied.*= 0;/a \\		unsigned int nr_subpages = __PAGE_SIZE / PAGE_SIZE;" fs/proc/task_mmu.c
+          sed -i "/unsigned int nr_subpages = __PAGE_SIZE \\/ PAGE_SIZE;/a \\		pagemap_entry_t *res = NULL;" fs/proc/task_mmu.c
         fi
         cat fs/proc/task_mmu.c
         if [ "${{ inputs.sublevel }}" -le "92" ]; then