Browse Source

Правка push-update

master
Alexander Demidov 11 years ago
parent
commit
3d69eb3c34
  1. 16
      push-update.sh

16
push-update.sh

@ -1,15 +1,9 @@
#!/bin/sh
#!/bin/bash
PATH_LIB='/lib/Image' PATH_LIB='/lib/Image'
array=('/var/www/10ballov','/var/www/predelanet','/var/www/zelenoemore','/var/www/d753_common')
if [ ! -a CHANGELOG.md ]
then
echo 'File CHANGELOG.md not exists.'
exit 1
fi
if [ test -n CHANGELOG.md ]
PROJECTS=( "/var/www/10ballov" "/var/www/predelanet" "/var/www/zelenoemore" "/var/www/d753_common" )
if [ ! test -n CHANGELOG.md ]
then then
echo 'CHANGELOG.md is empty.'
echo 'CHANGELOG.md not exists or empty.'
exit 1 exit 1
fi fi
git diff-index --quiet HEAD -- git diff-index --quiet HEAD --
@ -35,7 +29,7 @@ git push > /dev/null || exit 1
MESSAGE="Update ${PATH_LIB} on ${VERSION}" MESSAGE="Update ${PATH_LIB} on ${VERSION}"
CURRENT_DIR=`pwd` CURRENT_DIR=`pwd`
for project in "${array[@]}"
for project in "${PROJECTS[@]}"
do do
echo "Update lib for ${i}...\n" echo "Update lib for ${i}...\n"
(cd "${project}${PATH_LIB}" && (cd "${project}${PATH_LIB}" &&

Loading…
Cancel
Save