mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-22 18:21:53 +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
|
echo -e "${COLOR_RED}$*${COLOR_RESET}" 1>&2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enable_debug() {
|
||||||
|
# Enable debug mode.
|
||||||
|
warn "***DEBUG MODE***"
|
||||||
|
set -x
|
||||||
|
}
|
||||||
|
|
||||||
error_continue() {
|
error_continue() {
|
||||||
error_notify "$@"
|
error_notify "$@"
|
||||||
# Disabling this shellcheck as we only ever call it inside of a loop
|
# Disabling this shellcheck as we only ever call it inside of a loop
|
||||||
|
|||||||
Reference in New Issue
Block a user