From 59893faa943a2e6e1b5b531d2c4c09706e51d24b Mon Sep 17 00:00:00 2001 From: LoveSy <631499712@qq.com> Date: Sat, 21 May 2022 02:09:23 +0800 Subject: [PATCH] Check prop existence --- .github/workflows/magisk.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/magisk.yml b/.github/workflows/magisk.yml index 7ecd3a7..454ffb9 100644 --- a/.github/workflows/magisk.yml +++ b/.github/workflows/magisk.yml @@ -424,7 +424,7 @@ jobs: run: | from __future__ import annotations from io import TextIOWrapper - from os import system + from os import system, path from typing import OrderedDict @@ -466,6 +466,9 @@ jobs: def fix_prop(sec, prop): + if not path.exists(prop): + return + print(f"fixing {prop}", flush=True) with open(prop, 'r') as f: p = Prop(f)