forked from bitrise-steplib/steps-android-screenrecord-stop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstep.sh
More file actions
executable file
·18 lines (14 loc) · 755 Bytes
/
step.sh
File metadata and controls
executable file
·18 lines (14 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
##################################################################################################
### We keep this to maintain step compatibility for services using Bitrise CLI version below 1.4.0
##################################################################################################
set -ex
THIS_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
tmp_gopath_dir="$(mktemp -d)"
go_package_name="github.com/bitrise-steplib/steps-android-screenrecord-stop"
full_package_path="${tmp_gopath_dir}/src/${go_package_name}"
mkdir -p "${full_package_path}"
rsync -avh --quiet "${THIS_SCRIPT_DIR}/" "${full_package_path}/"
export GOPATH="${tmp_gopath_dir}"
export GO15VENDOREXPERIMENT=1
go run "${full_package_path}/main.go"