≈ the.bay.news

Quick tip: your cron script 'succeeded' because bash ignored the error. Start every job with set -euo pipefail

DEV Community
Quick tip: your cron script 'succeeded' because bash ignored the error. Start every job with set -euo pipefail
By default, a bash script keeps running after a failed command and exits 0 if the last line works. Here's the one-line fix for scheduled scripts, and its gotchas.

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.