Improve Shell Script syntax (#4497)

This commit is contained in:
Peter Dave Hello 2021-03-12 02:12:03 +08:00 committed by GitHub
parent 27ba85bc30
commit aede8849db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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/*"

View File

@ -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/*"

View File

@ -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