diff options
author | jahoti <jahoti@tilde.team> | 2021-10-13 00:00:00 +0000 |
---|---|---|
committer | jahoti <jahoti@tilde.team> | 2021-10-13 00:00:00 +0000 |
commit | e0c94ac47a4ec4378f1341158d82a6af3ffe4c96 (patch) | |
tree | f7a431c84a88cf3a068506c12e0548f454e7718a /upload_amo.sh | |
parent | 4320edc924a303ce0cab0000a5f16f045a3822df (diff) | |
download | browser-extension-e0c94ac47a4ec4378f1341158d82a6af3ffe4c96.tar.gz browser-extension-e0c94ac47a4ec4378f1341158d82a6af3ffe4c96.zip |
Add VPATH and Haketilo version to the makefile as part of configure.
Diffstat (limited to 'upload_amo.sh')
-rwxr-xr-x | upload_amo.sh | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/upload_amo.sh b/upload_amo.sh index 2d16c63..2f519c8 100755 --- a/upload_amo.sh +++ b/upload_amo.sh @@ -40,19 +40,6 @@ sha256hmac() { base64url "$(ech "$2" | openssl dgst -sha256 -hmac "$1" -binary -)" } -escape_regex_special() { - ech "$1" | sed 's/\([]\.*?{},()[-]\)/\\\1/g' -} - -# Note: We don't actually parse JSON. We extract needed keys with sed regexes -# which does not work in the general case but is sufficient for now. -get_json_key() { - local KEY_REG="$(escape_regex_special "$1")" - ech "$2" | - sed 's/\(.*"'"$KEY_REG"'"[[:space:]]*:[[:space:]]*"\([^"]*\)"\)\?.*/\2/' | - grep . | head -1 -} - get_manifest_key() { get_json_key "$1" "$(unzip -p "$2" manifest.json)" } |