Skip to content
Snippets Groups Projects
Commit 3263fae9 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #587 from greezybacon/issue/extensible-unpack


Make the Unpacker arguments extensible
Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 31b05d57 b68a2363
Branches
Tags
No related merge requests found
...@@ -144,7 +144,7 @@ class Unpacker extends Module { ...@@ -144,7 +144,7 @@ class Unpacker extends Module {
} }
function run($args, $options) { function run($args, $options) {
$this->destination = $this->getArgument('install-path'); $this->destination = $args['install-path'];
if (!is_dir($this->destination)) if (!is_dir($this->destination))
if (!mkdir($this->destination, 0751, true)) if (!mkdir($this->destination, 0751, true))
die("Destination path does not exist and cannot be created"); die("Destination path does not exist and cannot be created");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment