From e433076ebcebcfd36c25d34702f7592fe5b926ca Mon Sep 17 00:00:00 2001 From: j Date: Sat, 6 Feb 2016 16:18:48 +0530 Subject: [PATCH] checkout platform env before checking version --- ctl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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