Skip to content

Commit

Permalink
ensures default value for depth (defaulting to 3 for consistency)
Browse files Browse the repository at this point in the history
  • Loading branch information
edm00se committed Jan 25, 2021
1 parent 4cda4db commit 2229654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down

0 comments on commit 2229654

Please sign in to comment.