Update-TASTE.sh 897 Bytes
Newer Older
1
#!/bin/bash
2
git pull || exit 1
3 4 5 6 7 8 9 10 11 12 13
if [ -z "$1" -o "$1" == "--stable" ] ; then
    git submodule init || exit 1
    git submodule update || exit 1
else
    git submodule | awk '{print $2}' | while read FOLDER ; do
        cd "$FOLDER" || exit 1
        git checkout master || exit 1
        git pull || exit 1
        cd ..
    done
fi
14
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
15
export DISABLE_TASTE_BANNER=1
16
for INSTALL_SCRIPT in install/[0-9]*sh ; do
17 18 19 20 21 22
    if [ ! -z "${TASTE_IN_DOCKER}" ] ; then
        if [ "${INSTALL_SCRIPT}" == "install/65_postgres.sh" ] ; then
            echo Skipping over postgres installation in Docker container.
            continue
        fi
    fi
23 24
    ${INSTALL_SCRIPT} || { echo Failed in execution of "${INSTALL_SCRIPT}" ; exit 1 ; }
done
Thanassis Tsiodras's avatar
Thanassis Tsiodras committed
25 26
echo "Please close this terminal and open a new one (to"
echo "(make sure the environment variables are updated)."