aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-01-15 19:23:42 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-01-15 19:23:42 +0000
commit185795428e0761fadeea896a9695cfbf16290510 (patch)
tree264701f7863546fb67cc7023fb738bab4803174c /trunk/lib
parent9eeb01dc9229cb6646ba76bd6c385dad71d579f8 (diff)
downloadsimplepkg-185795428e0761fadeea896a9695cfbf16290510.tar.gz
simplepkg-185795428e0761fadeea896a9695cfbf16290510.tar.bz2
minor fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@745 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib')
-rw-r--r--trunk/lib/common.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index c73b65b..a7fa50c 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -652,13 +652,15 @@ function sync_repo {
# $2 - svn address
[ $# -ne 2 ] && exit 5
- local folder url
+ local folder url cwd
folder="$1"
url="$1"
+ cwd="`pwd`"
mkdir -p $folder
cd $folder
su_svn update || build_repo $folder $url
+ cd $pwd
}