Get a script down to zero shellcheck warnings — and understand which real bugs each one saves you from.