Правка push-update

Исправление метода File::getOwner()
This commit is contained in:
Alexander Demidov
2014-01-13 17:59:54 +04:00
parent 489fad739f
commit b14efb6123
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ abstract class File
$this->owner = $owner;
}
public function getOwner($owner)
public function getOwner()
{
return $this->owner;
}

View File

@ -20,7 +20,7 @@ then
echo -e "Please commit all changes in repository\n"
exit 1
fi
VERSION_PREVIOUS=`sed -n '4,4p' CHANGELOG.md | cut -d "(" -f1`
VERSION_PREVIOUS=`sed -n '4,4p' CHANGELOG.md | cut -d "(" -f1 | tr -d ' '`
if [ `git rev-parse ${VERSION_PREVIOUS}` != `git rev-parse HEAD` ]
then
VERSION=`echo ${VERSION_PREVIOUS} | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d", length($NF), ($NF+1)%(10^length($NF))); print}'`