#!/usr/bin/env bash set -e CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" PATH_APPS="$CUR_PATH/apps/" PATH_MODULES="$CUR_PATH/modules/" [ ! -d $PATH_APPS/drassil/joiner ] && git clone https://github.com/drassil/joiner $PATH_APPS/drassil/joiner -b master source "$PATH_APPS/drassil/joiner/joiner.sh" # installing repository dependencies if [[ $1 == "dev" ]]; then git submodule update --init "$CUR_PATH/data/doc" fi source "$CUR_PATH/apps/installer/main.sh"