summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-24 16:23:42 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-24 16:23:42 +0100
commit6c93b6e015234bb132c4f44cc2201f03adee63e5 (patch)
tree1ee9bc508c3c3bfba51ec428a13fce03a7188a02 /morph
parentf985052b15ea636566bf3d32fd1b88ed74b2390c (diff)
downloadmorph-6c93b6e015234bb132c4f44cc2201f03adee63e5.tar.gz
Only remove temporary directory if it exists
Diffstat (limited to 'morph')
-rwxr-xr-xmorph2
1 files changed, 1 insertions, 1 deletions
diff --git a/morph b/morph
index 2f4c4d44..aa78b4c7 100755
--- a/morph
+++ b/morph
@@ -262,7 +262,7 @@ class Morph(cliapp.Application):
if staging_root != '/':
staging_area.remove()
- if staging_temp != '/':
+ if staging_temp != '/' and os.path.exists(staging_temp):
shutil.rmtree(staging_temp)
def cmd_show_dependencies(self, args):