Skip to content

Commit

Permalink
install_blockblock: Update
Browse files Browse the repository at this point in the history
- Update to use the new Objective-See .org domain
- Update the awk to get the version number from the new HTML on the new website
  • Loading branch information
0xmachos committed Apr 23, 2024
1 parent cf38da7 commit 9fde3e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bittersweet
Original file line number Diff line number Diff line change
Expand Up @@ -809,14 +809,14 @@ function install_blockblock {
local zip_download_path
local zip_sha1

url="$(curl -s https://objective-see.com/products/blockblock.html \
url="$(curl -s https://objective-see.org/products/blockblock.html \
| grep -m 1 'downloads/BlockBlock' \
| awk -F '"' '{print $2}')"
| awk -F '"' '{print $4}')"
zip_name="$(echo "${url}" | awk -F '/' '{print $NF}')"
zip_download_path="${HOME}/Downloads/${zip_name}"
zip_sha1="$(curl -s https://objective-see.com/products/blockblock.html \
zip_sha1="$(curl -s https://objective-see.org/products/blockblock.html \
| grep 'SHA-1' \
| awk '{print $4}')"
| awk -F '[> |<]' '{print $12}')"

download_application "${zip_download_path}" "${url}"

Expand Down

0 comments on commit 9fde3e4

Please sign in to comment.