Created
March 3, 2017 08:14
-
-
Save chew-z/af76ff13af5e33136e115b107e3abb54 to your computer and use it in GitHub Desktop.
Grab Chrome extension form Web Store
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env zsh | |
mkdir -p chrome-crx | |
id=$1 | |
downloadUrl="https://clients2.google.com/service/update2/crx?response=redirect&prodversion=56.0&x=id%3D$id%26installsource%3Dondemand%26lang%3Den-US%26uc" | |
if [ ! -f "chrome-crx/$id.crx" ]; then | |
curl -Lso "chrome-crx/$id.crx" "$downloadUrl" | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment