From b27b3b5abad8f0a9ad6433a8157362e6f9f989dc Mon Sep 17 00:00:00 2001 From: Karan Verma Date: Wed, 9 Mar 2022 06:08:08 +0530 Subject: [PATCH] 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 Co-authored-by: Derek W. Stavis Co-authored-by: Pablo Aguiar --- pkg/omf/functions/bundle/omf.bundle.install.fish | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkg/omf/functions/bundle/omf.bundle.install.fish b/pkg/omf/functions/bundle/omf.bundle.install.fish index 7518390..5f33401 100644 --- a/pkg/omf/functions/bundle/omf.bundle.install.fish +++ b/pkg/omf/functions/bundle/omf.bundle.install.fish @@ -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