Comment

Comment by theaustinseven

All scripts should be run with "-eu". This prevents unbound variables from ever being used and will end the script on a failed command. If you want commands in the script to fail, just drop the "e" and run with "-u". At my last job we put "-eu" in literally all of our scripts to avoid this very problem.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton