|
|
@ -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) |
|
|
|