mirror of
https://github.com/jorgebucaran/fisher
synced 2024-07-02 23:11:48 +02:00
fix: use command
This commit is contained in:
parent
24e9154688
commit
76bb67b9c6
|
@ -227,7 +227,7 @@ function _fisher_pkg_fetch_all
|
||||||
if test ! -z \"$tag\"
|
if test ! -z \"$tag\"
|
||||||
command git clone $url \"$fisher_config/$pkg\" --branch $tag --depth 1 2>/dev/null
|
command git clone $url \"$fisher_config/$pkg\" --branch $tag --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
|
||||||
else if curl -Ss $url 2>&1 | tar -xzf- -C \"$fisher_config/$pkg\" --strip-components=1 2>/dev/null
|
else if command curl -Ss $url 2>&1 | command tar -xzf- -C \"$fisher_config/$pkg\" --strip-components=1 2>/dev/null
|
||||||
command mkdir -p \"$fisher_cache/$pkg\"
|
command mkdir -p \"$fisher_cache/$pkg\"
|
||||||
command cp -Rf \"$fisher_config/$pkg\" \"$fisher_cache/$pkg/..\"
|
command cp -Rf \"$fisher_config/$pkg\" \"$fisher_cache/$pkg/..\"
|
||||||
else if test -d \"$fisher_cache/$pkg\"
|
else if test -d \"$fisher_cache/$pkg\"
|
||||||
|
|
Loading…
Reference in a new issue