Skip to content

Commit

Permalink
split up download instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Aug 13, 2018
1 parent eae52cf commit 901f872
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/moon-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ const download = (res) => {

const install = (archivePath) => {
const targetPath = path.join(process.cwd(), name);
exec(`mkdir ${targetPath}; tar -xzf ${archivePath} -C ${targetPath} --strip=1`, (err) => {

exec(`mkdir ${targetPath}`, (err) => {
if (err) throw err;
});

exec(`tar -xzf ${archivePath} -C ${targetPath} --strip=1`, (err) => {
if (err) throw err;

log("install", "template");
Expand Down

0 comments on commit 901f872

Please sign in to comment.