aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 03:10:13 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 03:10:13 +0000
commit4034db0b36181430815acb9c740ffc13f0ef6ce3 (patch)
treebf051b4ae52499158dc34339b141281f683cf63f
parentf47e692cd2d4d7e68dec7b1add9ae435653e2f8f (diff)
downloadsimplepkg-4034db0b36181430815acb9c740ffc13f0ef6ce3.tar.gz
simplepkg-4034db0b36181430815acb9c740ffc13f0ef6ce3.tar.bz2
cleanup
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@581 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r--trunk/lib/common.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 605e05b..368cbd1 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -510,7 +510,7 @@ function svn_check {
# check if a file is under svn
# usage: svn_check <file>
- local cwd folder
+ local cwd folder retval
cwd="`pwd`"
folder="`dirname $1`"
@@ -521,19 +521,20 @@ function svn_check {
cd $folder
if [ "`svn status $file | awk '{ print $1 }'`" == "?" ]; then
- cd $cwd
- return 1
+ retval="1"
else
- cd $cwd
- return 0
+ retval="0"
fi
else
- return 1
+ retval="1"
fi
+ cd $cwd
+ return $retval
+
}
function build_repo {