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

Commit

Permalink
apm-ui: use the new kibana project layout (#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Feb 21, 2020
1 parent cbb685b commit 5d5fc26
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
#!/usr/bin/env bash
set -e

OWNER=${1:-elastic}
BRANCH=${2:-master}

echo "Cloning Kibana: $OWNER:$BRANCH"
echo "Cloning Kibana: ${OWNER}:${BRANCH}"

cd ./tmp
git clone --depth 1 -b $BRANCH https://github.com/$OWNER/kibana.git
mv ./kibana/x-pack/legacy/plugins/apm/typings/es_schemas ./apm-ui-interfaces
git clone --quiet --depth 1 -b "${BRANCH}" "https://github.com/${OWNER}/kibana.git"

### In 7.7 files moved around.
### The below section keeps backward compatibility.
oldLocation=./kibana/x-pack/legacy/plugins/apm/typings/es_schemas
newLocation=./kibana/x-pack/plugins/apm/typings/es_schemas
location=${oldLocation}
if [ -d "${newLocation}" ] ; then
location=${newLocation}
fi
mv "${location}" ./apm-ui-interfaces
rm -rf kibana

0 comments on commit 5d5fc26

Please sign in to comment.