autoshare/modules/functions.sh
2024-11-12 14:14:25 +00:00

22 lines
378 B
Bash

#!/bin/bash
# Common utility functions shared across multiple files.
source colors.sh
check_dependencies() {
return 0
}
log_info() {
local caller="${0##*/}"
echo -e "$caller: INFO: $*" >&2
}
log_notice() {
local caller="${0##*/}"
echo -e "$caller: ${GREEN}NOTICE: $*${RESET}" >&2
}
log_err() {
local caller="${0##*/}"
echo -e "$caller: ${RED}ERROR: $*${RESET}" >&2
}