#!/usr/bin/env bash

COPYRIGHT="$(basename "$0") - Copyright 2020 Nebular Streams"
RELSCRIPTPATH="$(realpath "$0")"

SCRIPTPATH="$(
  cd "$(dirname "${RELSCRIPTPATH}")" >/dev/null 2>&1
  pwd -P
)"

echo $SCRIPTPATH

cd $SCRIPTPATH/..

if [[ ! -d ./templates ]]; then
  git clone git@bitbucket.org:nobj/nobj-build-templates.git ./templates
else
  cd ./templates
  git stash && git pull
fi
