zoom: fix update-check
This commit is contained in:
committed by
Đoàn Trần Công Danh
parent
01555d9180
commit
23dca3e101
@@ -222,7 +222,7 @@ update_check() {
|
||||
fi
|
||||
|
||||
msg_verbose "fetching $url and scanning with $rx\n"
|
||||
curl "${curlargs[@]}" -H 'Accept: text/html,application/xhtml+xml,application/xml,text/plain,application/rss+xml' "$url" |
|
||||
curl "${curlargs[@]}" -H 'Accept: text/html,application/xhtml+xml,application/xml,text/plain,application/rss+xml,application/json' "$url" |
|
||||
grep -Po -i "$rx"
|
||||
fetchedurls[$url]=yes
|
||||
done |
|
||||
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
site="https://zoom.us/download?os=linux"
|
||||
pattern='Version \K[\d.]+(?=)'
|
||||
site="https://zoom.us/rest/download?os=linux"
|
||||
pattern='"version":\s*"\K[\d.]+(?=")'
|
||||
|
||||
Reference in New Issue
Block a user