diff --git a/ctl b/ctl index b0b686a..1e4ed3c 100755 --- a/ctl +++ b/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