From bb6e72e521741154e97f40f58cfab3d4a8be8601 Mon Sep 17 00:00:00 2001 From: Anya Lin Date: Fri, 27 Dec 2024 11:14:52 +0800 Subject: [PATCH] apk: clean old apk --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 442d1b640..e178f6547 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -335,7 +335,7 @@ jobs: } # clean old apk clean_old_apk() { - local rmlist=$(ls -1 *.ipk | grep -Ev "^($(jq -rc '.packages|to_entries[]|"\(.key)_\(.value)"' index.json | tr '\n' '|' | sed 's,|$,,'))") + local rmlist=$(ls -1 *.apk | grep -Ev "^($(jq -rc '.packages|to_entries[]|"\(.key)-\(.value)"' index.json | tr '\n' '|' | sed 's,|$,,'))") [ -z "$rmlist" ] || rm -f $rmlist } #