Update fetch-better-cf-ip.yml

This commit is contained in:
hl authored and GitHub committed 2026-01-02 13:08:06 +08:00
1 parent 9cad809e85
commit 449ff33558
1 file changed
+3 -2
+3 -2
View File
@@ -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