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)