mirror of
https://github.com/darkclip/netlist.git
synced 2026-12-07 06:42:38 +08:00
Update fetch-better-cf-ip.yml
This commit is contained in:
1 file changed
+3
-4
@@ -35,15 +35,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
match=cfst
|
match=cfst
|
||||||
for filepath in ref1/*; do
|
for filepath in ref1/*; do
|
||||||
rename=$(echo $filepath | awk -F'[./]' '{print $2}' | sed "s/cfst/cf/g")
|
rename=$(echo $filepath | awk -F'[./]' '{print $2}' | sed "s/$match/cf/g")
|
||||||
|
|
||||||
exename=$(tar -tf $filepath 2>/dev/null | grep -i $match || true)
|
exename=$(tar -tf $filepath 2>/dev/null | grep -w $match || true)
|
||||||
echo $rename $exename
|
|
||||||
if [ ! -z $exename ]; then
|
if [ ! -z $exename ]; then
|
||||||
echo "Extracting $rename"
|
echo "Extracting $rename"
|
||||||
tar -xf $filepath $exename -O >./target/$rename
|
tar -xf $filepath $exename -O >./target/$rename
|
||||||
fi
|
fi
|
||||||
exename=$(unzip -l $filepath 2>/dev/null | awk '{print $4}' | grep -i $match || true)
|
exename=$(unzip -l $filepath 2>/dev/null | awk '{print $4}' | grep -w $match || true)
|
||||||
if [ ! -z $exename ]; then
|
if [ ! -z $exename ]; then
|
||||||
appendix=$(echo $exename | awk -F'.' '{print $2}')
|
appendix=$(echo $exename | awk -F'.' '{print $2}')
|
||||||
if [ ! -z $appendix ]; then
|
if [ ! -z $appendix ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user