Browse Source

Правки push-update 07

master
Alexander Demidov 11 years ago
parent
commit
39e38f95a3
  1. 5
      push-update.sh

5
push-update.sh

@ -47,12 +47,13 @@ do
(echo -e "Failed to checkout lib on tag ${VERSION}\n" && (echo -e "Failed to checkout lib on tag ${VERSION}\n" &&
exit 1) exit 1)
cd "${project}" 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 $?` LIB_NEW_COMMITS=`echo $?`
if [ $LIB_NEW_COMMITS == 1 ] if [ $LIB_NEW_COMMITS == 1 ]
then then
(git reset > /dev/null && (git reset > /dev/null &&
git add "`echo ${PATH_LIB#'/'}`" > /dev/null &&
git add "$LIB_DIR" > /dev/null &&
git commit -m $MESSAGE > /dev/null) || git commit -m $MESSAGE > /dev/null) ||
(echo -e "Failed to update lib for ${project}\n" && (echo -e "Failed to update lib for ${project}\n" &&
exit 1) exit 1)

Loading…
Cancel
Save