add adblock content script
This commit is contained in:
1 parent
5dba81e4a4
commit
f245fb048b
8 files changed
+117
-102
No files matched your search
+2
-1
@@ -67,7 +67,7 @@ check_publish_response=$(curl -s \
|
||||
-H "Authorization: Bearer $token" \
|
||||
https://api.addons.microsoftedge.microsoft.com/v1/products/$product_id/submissions/operations/{$operation_id})
|
||||
|
||||
# echo $check_publish_response
|
||||
# echo $check_publish_response
|
||||
|
||||
# 使用 jq 提取 errorCode
|
||||
errorCode=$(echo $check_publish_response | jq -r '.errorCode')
|
||||
@@ -75,6 +75,7 @@ errorCode=$(echo $check_publish_response | jq -r '.errorCode')
|
||||
# 检查 errorCode 是否为 null
|
||||
if [ "$errorCode" = "null" ]; then
|
||||
echo "Submit successful."
|
||||
rm $file_name
|
||||
else
|
||||
echo "Operation failed. Error code: $errorCode"
|
||||
errors=$(echo $check_publish_response | jq -r '.message')
|
||||
|
||||
Reference in new issue
Block a user