Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Commit

Permalink
Ensure the builds directory exists during restore
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobvosmaer committed Sep 18, 2015
1 parent 8df6ac5 commit 7ac27f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/backup/builds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def dump

def restore
backup_existing_builds_dir
Dir.mkdir(app_builds_dir, 0700)

system(
*%W(tar -C #{app_builds_dir} -xzf - -- .),
Expand Down

0 comments on commit 7ac27f1

Please sign in to comment.