summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-10-15 20:26:46 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-10-15 20:26:46 -0700
commit853d0015773d640d3f2915c1c50e230a1c7b9ce5 (patch)
treebbcfcc75b330abadafb9bdd723a03248f18741f6 /usr
parent2d1f8319667741c57697613d27a99dbbf0e49663 (diff)
downloadpiny-code-853d0015773d640d3f2915c1c50e230a1c7b9ce5.tar.gz
piny-code-853d0015773d640d3f2915c1c50e230a1c7b9ce5.zip
Only attempt to mkdir if they don't already exist.
Diffstat (limited to 'usr')
-rw-r--r--usr/src/libpiny/lib/Piny/Repo.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/libpiny/lib/Piny/Repo.pm b/usr/src/libpiny/lib/Piny/Repo.pm
index facc812..1880ee2 100644
--- a/usr/src/libpiny/lib/Piny/Repo.pm
+++ b/usr/src/libpiny/lib/Piny/Repo.pm
@@ -204,7 +204,7 @@ sub rebuild {
};
foreach( "info", "logs" ) {
- mkdir( $s->path . "/" . $_ ) and die "Could not mkdir $_ for repo: $!";
+ (-e $s->path . "/" . $_) or mkdir( $s->path . "/" . $_ ) and die "Could not mkdir $_ for repo: $!";
};
chown( 0, 0, $s->path, $s->path . '/config' ) and die "Could not change ownership of git dir!";