Merge branch 'update-script-update' into 'master'

feat: Make update detach origin remote

See merge request mythic-insight/legendary!31
This commit is contained in:
Robert Prehn 2021-02-16 22:48:52 +00:00
commit b76c7a8249

View file

@ -8,6 +8,15 @@ DIR_PATH=$(dirname $FULL_PATH)
$DIR_PATH/bootstrap
ORIGIN=`git remote get-url origin || echo ''`
FRAMEWORK=`git remote get-url framework || echo ''`
if [ "$ORIGIN" == 'git@gitlab.com:mythic-insight/legendary.git' ] && [ "$FRAMEWORK" != 'git@gitlab.com:mythic-insight/legendary.git' ]; then
echo "Setting Legendary repo as 'framework' remote"
git remote add framework git@gitlab.com:mythic-insight/legendary.git
git remote remove origin
fi;
mix deps.get
mix npm.install
mix ecto.create