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:
Karan Verma 2022-03-09 06:08:08 +05:30 committed by GitHub
parent ab05441000
commit b27b3b5aba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,9 +17,16 @@ function omf.bundle.install
test -n "$name_or_url"; or continue test -n "$name_or_url"; or continue
set name (omf.packages.name $name_or_url) set name (omf.packages.name $name_or_url)
if not contains $name $packages if not contains $name $packages
omf.packages.install $name_or_url; 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 or set error
end end
end end