Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Simplify moving directories around
Browse files Browse the repository at this point in the history
  • Loading branch information
sargun committed May 1, 2018
1 parent 4c42545 commit c74c11a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .buildkite/build.sh
Expand Up @@ -3,13 +3,12 @@
export
set -uex -o pipefail

mkdir -p ${BUILDKITE_BUILD_CHECKOUT_PATH}/.tmp
mv -v ${BUILDKITE_BUILD_CHECKOUT_PATH}/* ${BUILDKITE_BUILD_CHECKOUT_PATH}/.tmp/

# This should clean the path
rm -rv ${BUILDKITE_BUILD_CHECKOUT_PATH}/* || true
mkdir -p ${BUILDKITE_BUILD_CHECKOUT_PATH}/src/github.com/Netflix/titus-executor/
mv ${BUILDKITE_BUILD_CHECKOUT_PATH}/.tmp/* ${BUILDKITE_BUILD_CHECKOUT_PATH}/src/github.com/Netflix/titus-executor/

shopt -s dotglob
mv ${BUILDKITE_BUILD_CHECKOUT_PATH}/* ${BUILDKITE_BUILD_CHECKOUT_PATH}/src/github.com/Netflix/titus-executor/ || true

export GOPATH="${BUILDKITE_BUILD_CHECKOUT_PATH}"
export PATH="/usr/local/go/bin:${GOPATH}/bin:${PATH}"

Expand Down

0 comments on commit c74c11a

Please sign in to comment.