aboutsummaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'trunk')
-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 {