Browse Source

Правка push-update

Исправление метода File::getOwner()
master
Alexander Demidov 11 years ago
parent
commit
b14efb6123
  1. 2
      File.class.php
  2. 2
      push-update.sh

2
File.class.php

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

2
push-update.sh

@ -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}'`

Loading…
Cancel
Save