From 449ff33558393d925004abb1236310f53dcc6ec1 Mon Sep 17 00:00:00 2001 From: "Dark@Zzz" Date: Fri, 2 Jan 2026 13:08:06 +0800 Subject: [PATCH] Update fetch-better-cf-ip.yml --- .github/workflows/fetch-better-cf-ip.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fetch-better-cf-ip.yml b/.github/workflows/fetch-better-cf-ip.yml index 7c29a25e..de54a34d 100644 --- a/.github/workflows/fetch-better-cf-ip.yml +++ b/.github/workflows/fetch-better-cf-ip.yml @@ -33,11 +33,12 @@ jobs: run: rm target/* - name: Rebuild target branch run: | - match="cfst" + match=cfst for filepath in ref1/*; do - rename=$(echo $filepath | awk -F'[./]' '{print $2}' | sed "s/$match/cf/g") + rename=$(echo $filepath | awk -F'[./]' '{print $2}' | sed "s/cfst/cf/g") exename=$(tar -tf $filepath 2>/dev/null | grep -i $match || true) + echo $rename $exename if [ ! -z $exename ]; then echo "Extracting $rename" tar -xf $filepath $exename -O >./target/$rename