From b14efb61239781e8c265287be243d7d8d5ecc377 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Mon, 13 Jan 2014 17:59:54 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20push-upd?= =?UTF-8?q?ate=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D0=B0=20File::get?= =?UTF-8?q?Owner()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- File.class.php | 2 +- push-update.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/File.class.php b/File.class.php index cd58c6c..d912c32 100644 --- a/File.class.php +++ b/File.class.php @@ -30,7 +30,7 @@ abstract class File $this->owner = $owner; } - public function getOwner($owner) + public function getOwner() { return $this->owner; } diff --git a/push-update.sh b/push-update.sh index 8a26db0..e587322 100755 --- a/push-update.sh +++ b/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}'`