configure.sh 375 Bytes
Newer Older
Isabella Skořepová's avatar
Isabella Skořepová committed
1
#!/bin/bash
2 3 4 5
URLBASE=$(dirname "$(git ls-remote --get-url)")
echo $URLBASE

if [ ! -d content ]
Isabella Skořepová's avatar
Isabella Skořepová committed
6 7
then 
  echo "Downloading content"
8
  git clone $URLBASE/content.git
Isabella Skořepová's avatar
Isabella Skořepová committed
9 10 11 12 13 14
else
  cd content
  git pull origin master
  cd ..
fi

15
if [ ! -d static ]
Isabella Skořepová's avatar
Isabella Skořepová committed
16 17
then 
  echo "Downloading static files"
18 19 20 21 22
  git clone $URLBASE/static.git
else
  cd static
  git pull origin master
  cd ..
Isabella Skořepová's avatar
Isabella Skořepová committed
23 24 25
fi

npm install