fix: preserve server schedule failures through tee pipeline

This commit is contained in:
Gabriel Vinhaes
2026-04-01 16:37:56 -03:00
parent c7b5e73d1c
commit eb80f79862
+1 -1
View File
@@ -159,7 +159,7 @@ export const runCommand = async (scheduleId: string) => {
const { SCHEDULES_PATH } = paths(true);
const fullPath = path.join(SCHEDULES_PATH, appName || "");
const command = `
set -e
set -euo pipefail
echo "Running script" >> ${deployment.logPath};
bash -c ${fullPath}/script.sh 2>&1 | tee -a ${deployment.logPath} || {
echo "❌ Command failed" >> ${deployment.logPath};