shell/helpers.sh

13 lines
374 B
Bash
Raw Normal View History

2024-11-24 13:13:37 +00:00
#!/bin/bash
source $(dirname $0)/helpers/io.sh || exit 255
source $(dirname $0)/helpers/basic.sh || exit 255
title() {
[ "$1" ] && title="$1" || title="$(grep -m 1 -oP "(?<=^##makedesc:\s).*$" ${BASH_SOURCE[1]})"
info
info "==============================================="
info "$title"
info "==============================================="
info
}