From 6811d79291e09bb6032b13338e3eedd6173d1561 Mon Sep 17 00:00:00 2001 From: Alan Alvarez Date: Tue, 11 Feb 2025 02:18:38 -0600 Subject: [PATCH] fix: update path script execution --- lib/bas/orchestrator/manager.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bas/orchestrator/manager.rb b/lib/bas/orchestrator/manager.rb index d8fed33..8c1db8b 100644 --- a/lib/bas/orchestrator/manager.rb +++ b/lib/bas/orchestrator/manager.rb @@ -85,7 +85,9 @@ def current_day def execute(script) puts "Executing #{script[:path]} at #{current_time}" - system("ruby ", script[:path]) + absolute_path = File.expand_path(script[:path], __dir__) + + system("ruby", absolute_path) end end end