mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-20 01:02:36 +01:00
common: Add debug mode
This commit is contained in:
@@ -61,6 +61,12 @@ error_notify() {
|
||||
echo -e "${COLOR_RED}$*${COLOR_RESET}" 1>&2
|
||||
}
|
||||
|
||||
enable_debug() {
|
||||
# Enable debug mode.
|
||||
warn "***DEBUG MODE***"
|
||||
set -x
|
||||
}
|
||||
|
||||
error_continue() {
|
||||
error_notify "$@"
|
||||
# Disabling this shellcheck as we only ever call it inside of a loop
|
||||
|
||||
Reference in New Issue
Block a user