File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -5,5 +5,8 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55cd $SCRIPT_DIR /..
66SENTRY_API_SCHEMA_SHA=" $( curl -sSL ' https://api.github.com/repos/getsentry/sentry-api-schema/commits/main' | awk ' BEGIN { RS=",|:{\n"; FS="\""; } $2 == "sha" { print $4 }' ) "
77
8- sed -i -e " s/\(Change Date:\s*\)[-0-9]\+\$ /\\ 1$( date +' %Y-%m-%d' -d ' 3 years' ) /" LICENSE
9- sed -i -e ' s|^const SENTRY_API_SCHEMA_SHA =.*$|const SENTRY_API_SCHEMA_SHA = "' $SENTRY_API_SCHEMA_SHA ' "|g' src/gatsby/utils/resolveOpenAPI.ts
8+ # These commands won't work on our machines since they're running macosx
9+ if [ " ${1:- prod} " == " prod" ]; then
10+ sed -i -e " s/\(Change Date:\s*\)[-0-9]\+\$ /\\ 1$( date +' %Y-%m-%d' -d ' 3 years' ) /" LICENSE
11+ sed -i -e ' s|^const SENTRY_API_SCHEMA_SHA =.*$|const SENTRY_API_SCHEMA_SHA = "' $SENTRY_API_SCHEMA_SHA ' "|g' src/gatsby/utils/resolveOpenAPI.ts
12+ fi
You can’t perform that action at this time.
0 commit comments