You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
757 B

6 years ago
  1. #!/bin/sh
  2. # run
  3. #
  4. # Copyright (c) 2015 Crashlytics. All rights reserved.
  5. # Figure out where we're being called from
  6. DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
  7. # Quote path in case of spaces or special chars
  8. DIR="\"${DIR}"
  9. PATH_SEP="/"
  10. VALIDATE_COMMAND="uploadDSYM\" $@ validate run-script"
  11. UPLOAD_COMMAND="uploadDSYM\" $@ run-script"
  12. # Ensure params are as expected, run in sync mode to validate
  13. eval $DIR$PATH_SEP$VALIDATE_COMMAND
  14. return_code=$?
  15. if [[ $return_code != 0 ]]; then
  16. exit $return_code
  17. fi
  18. # Verification passed, upload dSYM in background to prevent Xcode from waiting
  19. # Note: Validation is performed again before upload.
  20. # Output can still be found in Console.app
  21. eval $DIR$PATH_SEP$UPLOAD_COMMAND > /dev/null 2>&1 &