Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
123456789101112131415161718192021222324252627#!/bin/bashset -o errexitset -o pipefailset -o nounset
# Build numbers already present in the environment take precedence over the# global EAS counters. Production OTA deploys rely on this to target the# specific native build they are for, since the counters advance with every# testflight build.if [ -z "${BSKY_IOS_BUILD_NUMBER:-}" ]; then outputIos=$(eas build:version:get -p ios) BSKY_IOS_BUILD_NUMBER=${outputIos#*buildNumber - }fi
if [ -z "${BSKY_ANDROID_VERSION_CODE:-}" ]; then outputAndroid=$(eas build:version:get -p android) BSKY_ANDROID_VERSION_CODE=${outputAndroid#*versionCode - }fi
# Export the build-number vars and exec the wrapped command directly. Using# `exec "$@"` preserves argument boundaries; the old `bash -c "... $*"` flattened# every argument into one string that a nested shell re-parsed, which mangled# arguments containing spaces, `#`, or newlines (e.g. the multi-line `--message`# passed to `eoas publish`).export BSKY_IOS_BUILD_NUMBER BSKY_ANDROID_VERSION_CODEexec "$@"