From c739196dc2f301d2b68f2e9ac0228f2bfbbcb37f Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Wed, 10 Sep 2025 15:06:40 +0200 Subject: [PATCH] fix: Use resolved absolute path for script execution - Fix script execution by using resolvedPath instead of scriptPath - This ensures the correct absolute path is used when spawning bash - Previously was looking for scripts/ct/script.sh inside scripts/ directory - Now correctly uses /root/Dev/PVESciptslocal/scripts/ct/script.sh --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 164b664..5869cc1 100644 --- a/server.js +++ b/server.js @@ -136,7 +136,7 @@ class ScriptExecutionHandler { } // Start script execution with pty for proper TTY support - const childProcess = ptySpawn('bash', [scriptPath], { + const childProcess = ptySpawn('bash', [resolvedPath], { cwd: scriptsDir, name: 'xterm-256color', cols: 80,