mirror of
https://github.com/GiriNeko/CheckChrome.git
synced 2025-12-17 13:47:21 +00:00
remove: cache
This commit is contained in:
parent
1b4c2cfda7
commit
2bbcd148a8
3 changed files with 20 additions and 14 deletions
|
|
@ -5,14 +5,14 @@ echo '-------------------------------------'
|
|||
|
||||
for i in $@
|
||||
do
|
||||
cache="http://101.96.9.133/"
|
||||
# cache="http://101.96.9.133/"
|
||||
version=$(sed -n '1p' ./tmp/parse/${i}-result.info)
|
||||
dl_base=$(sed -n '2p' ./tmp/parse/${i}-result.info)
|
||||
dl_alt_base=$(sed -n '3p' ./tmp/parse/${i}-result.info)
|
||||
dl_file=$(sed -n '4p' ./tmp/parse/${i}-result.info)
|
||||
dl="https://"${dl_base}${dl_file}
|
||||
dl_alt="https://"${dl_alt_base}${dl_file}
|
||||
dl_cache=${cache}${dl_alt_base}${dl_file}
|
||||
# dl_cache=${cache}${dl_alt_base}${dl_file}
|
||||
sha256=$(sed -n '5p' ./tmp/parse/${i}-result.info)
|
||||
size_raw=$(sed -n '6p' ./tmp/parse/${i}-result.info)
|
||||
size=$(awk 'BEGIN{printf "%.3f",('$size_raw'/'1048576')}')" MB"
|
||||
|
|
@ -21,13 +21,13 @@ do
|
|||
sed -i "s|{{${i}-SHA256}}|$sha256|g" tmp/index.html
|
||||
sed -i "s|{{${i}-dl-main}}|$dl|g" tmp/index.html
|
||||
sed -i "s|{{${i}-dl-alternative}}|$dl_alt|g" tmp/index.html
|
||||
sed -i "s|{{${i}-dl-cache}}|$dl_cache|g" tmp/index.html
|
||||
# sed -i "s|{{${i}-dl-cache}}|$dl_cache|g" tmp/index.html
|
||||
sed -i "s|{{${i}-Size}}|$size|g" tmp/index.html
|
||||
|
||||
sed -i "s|{{${i}-Version}}|$version|g" tmp/chrome.xml
|
||||
sed -i "s|{{${i}-SHA256}}|$sha256|g" tmp/chrome.xml
|
||||
sed -i "s|{{${i}-dl-main}}|$dl|g" tmp/chrome.xml
|
||||
sed -i "s|{{${i}-dl-alternative}}|$dl_alt|g" tmp/chrome.xml
|
||||
sed -i "s|{{${i}-dl-cache}}|$dl_cache|g" tmp/chrome.xml
|
||||
# sed -i "s|{{${i}-dl-cache}}|$dl_cache|g" tmp/chrome.xml
|
||||
sed -i "s|{{${i}-Size}}|$size_raw|g" tmp/chrome.xml
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue