mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-28 03:09:31 +08:00
Require bundle package after install (#863)
* Require bundle package after install * Require bundle package after install * Require bundle package after install * Require bundle package after install * Require bundle package after install * Require bundle package after install * remove whitespace Co-authored-by: Pablo Aguiar <scorphus@gmail.com> Co-authored-by: Derek W. Stavis <dekestavis@gmail.com> Co-authored-by: Pablo Aguiar <scorphus@gmail.com>
This commit is contained in:
parent
ab05441000
commit
b27b3b5aba
|
@ -17,9 +17,16 @@ function omf.bundle.install
|
|||
test -n "$name_or_url"; or continue
|
||||
|
||||
set name (omf.packages.name $name_or_url)
|
||||
|
||||
if not contains $name $packages
|
||||
omf.packages.install $name_or_url;
|
||||
and begin
|
||||
test $type = package
|
||||
and begin
|
||||
require $name
|
||||
or echo "Failed to require package: $name"
|
||||
end
|
||||
or true
|
||||
end
|
||||
or set error
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user