#!/bin/sh
#Author: Andrea Guerrieri - EPFL-LAP email:andrea.guerrieri@epfl.ch
#Dynamatic Update Script
#ver.1.0



export check_result
echo "Checking for new versions"

cd $DHLS_INSTALL_DIR/etc/dynamatic

check_result=`git pull`

repo_updated="Already up to date."

if [ "$check_result" == "$repo_updated" ]; then
    echo "Repository updated"
else
    echo "New version present - installing"
    echo sh install_elastic_pass.sh
    echo sh install_packages.sh    
    echo "Software packages updated, please reboot Dynamatic to make effective the modifications"
fi


