Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed problem when the get/ directory does not exists (at initializat…

…ion of a new repository for instance)
  • Loading branch information...
commit 983dd819597f6fd381210af87a62e1765504b677 1 parent a59de6d
@fabpot fabpot authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 pirum
View
5 pirum
@@ -113,6 +113,11 @@ class Pirum_CLI
return 1;
}
+ if (!is_dir($target.'/get'))
+ {
+ mkdir($target.'/get', 0777, true);
+ }
+
copy($this->options[3], $target.'/get/'.basename($this->options[3]));
system('cd '.$target.'/get/ && gunzip '.basename($this->options[3]));
copy($this->options[3], $target.'/get/'.basename($this->options[3]));
Please sign in to comment.
Something went wrong with that request. Please try again.