mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
fix: don't create cache directory before fetching
This commit is contained in:
parent
859c85a299
commit
49785a134b
1 changed files with 1 additions and 1 deletions
|
@ -332,7 +332,7 @@ function _fisher_fetch
|
||||||
if test ! -d "$fisher_config/$pkg"
|
if test ! -d "$fisher_config/$pkg"
|
||||||
fish -c "
|
fish -c "
|
||||||
echo fetching $url >&2
|
echo fetching $url >&2
|
||||||
command mkdir -p {$fisher_config,$fisher_cache}/$pkg
|
command mkdir -p $fisher_config/$pkg $fisher_cache/(dirname $pkg)
|
||||||
if test ! -z \"$branch\"
|
if test ! -z \"$branch\"
|
||||||
command git clone $url $fisher_config/$pkg --branch $branch --depth 1 2>/dev/null
|
command git clone $url $fisher_config/$pkg --branch $branch --depth 1 2>/dev/null
|
||||||
or echo cannot clone \"$url\" -- is this a valid url\? >&2
|
or echo cannot clone \"$url\" -- is this a valid url\? >&2
|
||||||
|
|
Loading…
Reference in a new issue