Fix script executor.

This commit is contained in:
2026-04-20 15:18:05 +01:00
parent 51b9ae9714
commit adc3fc4328

View File

@@ -331,7 +331,7 @@ handle_post(Request) :-
ScriptPath,
(
member(Script, Matches),
format(atom(ScriptPath), '~w/automation/~w.sh', [Destination, Script])
format(atom(ScriptPath), '(cd ~w && ./automation/~w.sh)', [Destination, Script])
),
Scripts
),