Skip to content

Commit

Permalink
Don't capture release-scripts in push.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Drogalis committed Jun 30, 2016
1 parent 712ee93 commit 91e9b38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ onyx.log
data
hs_err_pid*
*.iml
.idea/
.idea/
scripts/release-scripts
6 changes: 4 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ set -o nounset
set -o xtrace

REPO_SRC="https://github.com/onyx-platform/onyx-release-scripts.git"
LOCAL_REPO="release-scripts"
LOCAL_REPO="scripts/release-scripts"
LOCAL_REPO_VC_DIR=$LOCAL_REPO/.git

pushd .

if [ ! -d $LOCAL_REPO_VC_DIR ]
then
git clone $REPO_SRC $LOCAL_REPO
else
cd $LOCAL_REPO
git pull $REPO_SRC
cd ..
popd
fi

bash "$LOCAL_REPO/release_plugin.sh" "$@"

0 comments on commit 91e9b38

Please sign in to comment.