Skip to content

Commit eb80f79

Browse files
author
Gabriel Vinhaes
committed
fix: preserve server schedule failures through tee pipeline
1 parent c7b5e73 commit eb80f79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/server/src/utils/schedules

‎packages/server/src/utils/schedules/utils.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export const runCommand = async (scheduleId: string) => {
159159
const { SCHEDULES_PATH } = paths(true);
160160
const fullPath = path.join(SCHEDULES_PATH, appName || "");
161161
const command = `
162-
set -e
162+
set -euo pipefail
163163
echo "Running script" >> ${deployment.logPath};
164164
bash -c ${fullPath}/script.sh 2>&1 | tee -a ${deployment.logPath} || {
165165
echo "❌ Command failed" >> ${deployment.logPath};

0 commit comments

Comments
 (0)