mirror of
https://github.com/jorgebucaran/fisher
synced 2024-07-02 23:11:48 +02:00
don't try to install a package from an invalid specifier; fix #454
This commit is contained in:
parent
25661f77cf
commit
1bd12771e7
|
@ -194,12 +194,15 @@ function _fisher_pkg_fetch_all
|
||||||
if test -e "$path"
|
if test -e "$path"
|
||||||
set local_pkgs $local_pkgs $path
|
set local_pkgs $local_pkgs $path
|
||||||
else
|
else
|
||||||
echo "cannot install $name -- is this a valid file?" >&2
|
echo "cannot install \"$name\" -- is this a valid file?" >&2
|
||||||
end
|
end
|
||||||
continue
|
continue
|
||||||
case https://\* ssh://\* {github,gitlab}.com/\* bitbucket.org/\*
|
case https://\* ssh://\* {github,gitlab}.com/\* bitbucket.org/\*
|
||||||
case \*
|
case \*/\*
|
||||||
set name "github.com/$name"
|
set name "github.com/$name"
|
||||||
|
case \*
|
||||||
|
echo "cannot install \"$name\" -- should be <owner>/$name" >&2
|
||||||
|
continue
|
||||||
end
|
end
|
||||||
|
|
||||||
echo $name | command awk '{
|
echo $name | command awk '{
|
||||||
|
|
Loading…
Reference in a new issue