set -euo pipefail # Exit on error, undefined vars, pipe failures
OR for more control:
set -o errexit
set -o nounset
set -o pipefail
Note: May need -e off if you want graceful degradation.
#!/bin/bash
# No error handling
Improvement: Add at top:
set -euo pipefail # Exit on error, undefined vars, pipe failures
# OR for more control:
set -o errexit
set -o nounset
set -o pipefail
Note: May need -e off if you want graceful degradation.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
#!/bin/bash
No error handling
Improvement: Add at top:
set -euo pipefail # Exit on error, undefined vars, pipe failures
OR for more control:
set -o errexit
set -o nounset
set -o pipefail
Note: May need -e off if you want graceful degradation.