diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-12-03 03:10:24 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-12-03 03:10:24 +0000 |
commit | 649cce04c827529f8e94cc4e6cabe4a73ca83a7b (patch) | |
tree | 3f2f4691a260256858913c5935bb4058d4c17832 /trunk/lib | |
parent | 65a0b7749842e01df429976df4851ef394fded4e (diff) | |
download | simplepkg-649cce04c827529f8e94cc4e6cabe4a73ca83a7b.tar.gz simplepkg-649cce04c827529f8e94cc4e6cabe4a73ca83a7b.tar.bz2 |
fix in svn_check
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@630 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib')
-rw-r--r-- | trunk/lib/common.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 |