summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
Diffstat (limited to 'morph')
-rwxr-xr-xmorph3
1 files changed, 3 insertions, 0 deletions
diff --git a/morph b/morph
index 9e61ac16..96987fa8 100755
--- a/morph
+++ b/morph
@@ -58,6 +58,9 @@ class Morph(cliapp.Application):
tempdir = morphlib.tempdir.Tempdir()
builder = morphlib.builder.Builder(tempdir, self.msg, self.settings)
+ if not os.path.exists(self.settings['cachedir']) and os.getuid() != 0:
+ os.mkdir(self.settings['cachedir'])
+
while len(args) >= 3:
repo, ref, filename = args[:3]
args = args[3:]