From 2229654c1773d00216f095b35514b5d43380ad84 Mon Sep 17 00:00:00 2001 From: Eric McCormick Date: Mon, 25 Jan 2021 09:14:26 -0600 Subject: [PATCH] ensures default value for depth (defaulting to 3 for consistency) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 17f14cc..60f5d55 100644 --- a/index.js +++ b/index.js @@ -31,7 +31,7 @@ const getTar = ({ repo, path = '', name, - depth + depth = 3 }) => { const url = `https://codeload.github.com/${user}/${repo}/tar.gz/master` const cmd = `curl ${url} | tar -xz -C ${name} --strip=${depth} ${repo}-master/${path}`