From 30c6e34b2e016ec063458e83955a5ddc1fb199a6 Mon Sep 17 00:00:00 2001 From: Raven Avalon Date: Tue, 14 Feb 2017 11:33:05 -0500 Subject: [PATCH] fix(scripts): change all paths in docs pushing script to relative paths --- scripts/release/publish-docs-content.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/release/publish-docs-content.sh b/scripts/release/publish-docs-content.sh index e25e921e294b..5074ff1aa65f 100755 --- a/scripts/release/publish-docs-content.sh +++ b/scripts/release/publish-docs-content.sh @@ -5,10 +5,10 @@ cd "$(dirname $0)/../../" -docsPath="/dist/docs" +docsPath="./dist/docs" repoPath="/tmp/material2-docs-content" repoUrl="https://github.com/DevVersion/material2-docs-content" -examplesSource="/dist/docs/examples" +examplesSource="./dist/docs/examples" # If the docs directory is not present, generate docs if [ ! -d $docsPath ]; then @@ -22,7 +22,7 @@ commitAuthorEmail="$(git --no-pager show -s --format='%ae' HEAD)" commitMessage="$(git log --oneline -n 1)" # create directory and clone test repo -rm -rf /tmp/ +rm -rf $repoPath mkdir -p $repoPath git clone $repoUrl $repoPath