checkout platform env before checking version

This commit is contained in:
j 2016-02-06 16:18:48 +05:30
parent ca62bd051f
commit e433076ebc

6
ctl
View file

@ -166,14 +166,14 @@ if [ "$1" == "init" ]; then
fi fi
if [ "$1" == "update" ]; then if [ "$1" == "update" ]; then
cd "$BASE/$NAME" cd "$BASE/$NAME"
if [ ! -e "${PLATFORM_ENV}" ]; then
git clone https://git.0x2620.org/openmedialibrary_platform_${PLATFORM}.git "${PLATFORM_ENV}"
fi
if [ -d "$BASE/$NAME/.git" ]; then if [ -d "$BASE/$NAME/.git" ]; then
OLD=`"$0" version` OLD=`"$0" version`
cd "$BASE/platform" cd "$BASE/platform"
echo Update shared platform... echo Update shared platform...
git pull git pull
if [ ! -e "${PLATFORM_ENV}" ]; then
git clone https://git.0x2620.org/openmedialibrary_platform_${PLATFORM}.git "${PLATFORM_ENV}"
fi
cd "${PLATFORM_ENV}" cd "${PLATFORM_ENV}"
echo Update platform... echo Update platform...
git pull git pull