mirror of
https://github.com/jorgebucaran/fisher
synced 2024-06-28 23:01:50 +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"
|
||||
set local_pkgs $local_pkgs $path
|
||||
else
|
||||
echo "cannot install $name -- is this a valid file?" >&2
|
||||
echo "cannot install \"$name\" -- is this a valid file?" >&2
|
||||
end
|
||||
continue
|
||||
case https://\* ssh://\* {github,gitlab}.com/\* bitbucket.org/\*
|
||||
case \*
|
||||
case \*/\*
|
||||
set name "github.com/$name"
|
||||
case \*
|
||||
echo "cannot install \"$name\" -- should be <owner>/$name" >&2
|
||||
continue
|
||||
end
|
||||
|
||||
echo $name | command awk '{
|
||||
|
|
Loading…
Reference in a new issue