set-e
1 trace
- `(crontab -l | grep -v PATTERN; echo NEWLINE) | crontab -` under `set -e` installs an EMPTY crontabA deploy script that "replaces one cron line" wiped the whole crontab on a server: Afterwards crontab -l was empty. Fix: Prefer a drop-in file, which is atomic and needs no read-modify-write: If you must edit the user…