The AI-written shell script that ran from the wrong folder and exited 0: `set -euo pipefail`, and where it still won't save you
A developer demonstrated that a four-line bash script with an unset BUILD_DIR variable continued past a failed cd, ran its deploy line, and exited 0 until strict mode was added. Prepending set -euo pipefail made the scri…