From d760e55f7a07d3231231c079fc78c9b5e1de4bc6 Mon Sep 17 00:00:00 2001 From: rishichawda Date: Thu, 19 Dec 2024 17:14:37 +0530 Subject: [PATCH] fix ohai call for checking platform Signed-off-by: rishichawda --- bin/appbundle-updater | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/appbundle-updater b/bin/appbundle-updater index 0a2f819..b3e5af8 100755 --- a/bin/appbundle-updater +++ b/bin/appbundle-updater @@ -88,7 +88,7 @@ TAR_LONGLINK = "././@LongLink".freeze def install_package_dependencies banner("Installing Packages") - case `#{bin_dir}/ohai platform_family` # rubocop: disable Lint/LiteralAsCondition + case `hab pkg exec #{ARGV[0]}/#{ARGV[1]} ohai platform_family` # rubocop: disable Lint/LiteralAsCondition when /debian/ ENV["DEBIAN_FRONTEND"] = "noninteractive" run("apt-get -y update")