don't try to install a package from an invalid specifier; fix #454

This commit is contained in:
Jorge Bucaran 2018-10-06 02:57:57 +09:00
parent 25661f77cf
commit 1bd12771e7
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -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 '{