mirror of
https://github.com/kenzok8/small-package
synced 2025-01-08 11:17:34 +08:00
update 2024-08-05 20:34:46
This commit is contained in:
parent
e46115c148
commit
aea668cece
@ -48,7 +48,7 @@ url=
|
||||
out=
|
||||
type=
|
||||
|
||||
# \.(css|js)
|
||||
# \.(css|js) main ref
|
||||
for _i in $(seq 0 1 $[ ${#refurl[@]} -1 ]); do
|
||||
eval "url=${refurl[$_i]}"
|
||||
out=${url##*/}
|
||||
@ -64,6 +64,7 @@ ref=$(for _p in $(find * -type f ! -path "$PKG_DIR/*"); do \
|
||||
[ "$?" == "0" ] && echo $_p; \
|
||||
done)
|
||||
|
||||
# ref of main ref
|
||||
for _i in $ref; do
|
||||
suburl=($(sed -E "s/(,|;)/\1\n/g" $_i | grep -E "\burl\([^\)]+\)" | grep -Ev "\burl\(\"data:image" | sed -En "s|^[^']+'([^']+)'.+|\1| p"))
|
||||
hosturl=$(for _ in "${refurl[@]}"; do grep "${_i##*/}" <<< "$_"; done)
|
||||
|
@ -51,7 +51,7 @@ url=
|
||||
out=
|
||||
path=
|
||||
|
||||
# \.(css|js)
|
||||
# \.(css|js) main ref
|
||||
for _i in $(seq 0 1 $[ ${#refurl[@]} -1 ]); do
|
||||
eval "url=${refurl[$_i]}"
|
||||
out=${url##*/}
|
||||
@ -67,6 +67,7 @@ ref=$(for _p in $(find * -type f); do \
|
||||
[ "$?" == "0" ] && echo $_p; \
|
||||
done)
|
||||
|
||||
# ref of main ref
|
||||
for _i in $ref; do
|
||||
suburl=($(sed -E "s/(,|;)/\1\n/g" $_i | grep -E "\burl\([^\)]+\)" | grep -Ev "\burl\(\"data:image" | sed -En "s|^[^']+'([^']+)'.+|\1| p"))
|
||||
hosturl=$(for _ in "${refurl[@]}"; do grep "${_i##*/}" <<< "$_"; done)
|
||||
|
Loading…
Reference in New Issue
Block a user