mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00:00
Improve Shell Script syntax (#4497)
This commit is contained in:
parent
27ba85bc30
commit
aede8849db
@ -10,7 +10,7 @@ set -o pipefail
|
|||||||
|
|
||||||
# Only upload if we have defined credentials - we only have these defined for
|
# Only upload if we have defined credentials - we only have these defined for
|
||||||
# trusted commits (i.e. not PRs).
|
# trusted commits (i.e. not PRs).
|
||||||
if [[ ! -z "${AWS_ACCESS_KEY_ID}" && $GITHUB_REF == "refs/heads/master" ]]; then
|
if [[ -n "${AWS_ACCESS_KEY_ID}" && $GITHUB_REF == "refs/heads/master" ]]; then
|
||||||
aws s3 sync --delete --acl public-read ./public s3://docs.mitmproxy.org/master
|
aws s3 sync --delete --acl public-read ./public s3://docs.mitmproxy.org/master
|
||||||
aws cloudfront create-invalidation --distribution-id E1TH3USJHFQZ5Q \
|
aws cloudfront create-invalidation --distribution-id E1TH3USJHFQZ5Q \
|
||||||
--paths "/master/*"
|
--paths "/master/*"
|
||||||
|
@ -16,7 +16,7 @@ SPATH="/archive/$1"
|
|||||||
|
|
||||||
aws configure set preview.cloudfront true
|
aws configure set preview.cloudfront true
|
||||||
aws --profile mitmproxy \
|
aws --profile mitmproxy \
|
||||||
s3 sync --acl public-read ./public s3://docs.mitmproxy.org$SPATH
|
s3 sync --acl public-read ./public "s3://docs.mitmproxy.org$SPATH"
|
||||||
aws --profile mitmproxy \
|
aws --profile mitmproxy \
|
||||||
cloudfront create-invalidation --distribution-id E1TH3USJHFQZ5Q \
|
cloudfront create-invalidation --distribution-id E1TH3USJHFQZ5Q \
|
||||||
--paths "$SPATH/*"
|
--paths "$SPATH/*"
|
||||||
|
@ -10,4 +10,4 @@ wget -N https://raw.githubusercontent.com/kaitai-io/kaitai_struct_formats/master
|
|||||||
wget -N https://raw.githubusercontent.com/kaitai-io/kaitai_struct_formats/master/common/vlq_base128_le.ksy
|
wget -N https://raw.githubusercontent.com/kaitai-io/kaitai_struct_formats/master/common/vlq_base128_le.ksy
|
||||||
wget -N https://raw.githubusercontent.com/kaitai-io/kaitai_struct_formats/master/serialization/google_protobuf.ksy
|
wget -N https://raw.githubusercontent.com/kaitai-io/kaitai_struct_formats/master/serialization/google_protobuf.ksy
|
||||||
|
|
||||||
kaitai-struct-compiler --target python --opaque-types=true *.ksy
|
kaitai-struct-compiler --target python --opaque-types=true ./*.ksy
|
||||||
|
Loading…
Reference in New Issue
Block a user