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
|
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
|
||||||
|
|
Loading…
Reference in a new issue