From 39e38f95a3eeb2b143fc733ff6fb024a84dfea01 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Mon, 13 Jan 2014 17:07:51 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20push-upd?= =?UTF-8?q?ate=2007?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- push-update.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/push-update.sh b/push-update.sh index 6539338..fae0f54 100755 --- a/push-update.sh +++ b/push-update.sh @@ -47,12 +47,13 @@ do (echo -e "Failed to checkout lib on tag ${VERSION}\n" && exit 1) cd "${project}" - git diff-index --quiet HEAD "`echo ${PATH_LIB#'/'}`" + LIB_DIR=`echo ${PATH_LIB#'/'}` + git diff-index --quiet HEAD "$LIB_DIR" LIB_NEW_COMMITS=`echo $?` if [ $LIB_NEW_COMMITS == 1 ] then (git reset > /dev/null && - git add "`echo ${PATH_LIB#'/'}`" > /dev/null && + git add "$LIB_DIR" > /dev/null && git commit -m $MESSAGE > /dev/null) || (echo -e "Failed to update lib for ${project}\n" && exit 1)