checkout platform env before checking version
This commit is contained in:
parent
ca62bd051f
commit
e433076ebc
1 changed files with 3 additions and 3 deletions
6
ctl
6
ctl
|
@ -166,14 +166,14 @@ if [ "$1" == "init" ]; then
|
|||
fi
|
||||
if [ "$1" == "update" ]; then
|
||||
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
|
||||
OLD=`"$0" version`
|
||||
cd "$BASE/platform"
|
||||
echo Update shared platform...
|
||||
git pull
|
||||
if [ ! -e "${PLATFORM_ENV}" ]; then
|
||||
git clone https://git.0x2620.org/openmedialibrary_platform_${PLATFORM}.git "${PLATFORM_ENV}"
|
||||
fi
|
||||
cd "${PLATFORM_ENV}"
|
||||
echo Update platform...
|
||||
git pull
|
||||
|
|
Loading…
Reference in a new issue