From 649cce04c827529f8e94cc4e6cabe4a73ca83a7b Mon Sep 17 00:00:00 2001 From: rhatto Date: Wed, 3 Dec 2008 03:10:24 +0000 Subject: fix in svn_check git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@630 04377dda-e619-0410-9926-eae83683ac58 --- trunk/lib/common.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'trunk/lib') diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 4f61c46..4e73ea5 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -517,7 +517,11 @@ function svn_check { folder="`dirname $1`" file="`basename $1`" - if [ -d "$folder/$file/.svn" ]; then + if [ ! -e "$folder/$file" ]; then + + return 1 + + elif [ -d "$folder/$file/.svn" ]; then return 0 -- cgit v1.2.3