shell/helpers.sh
2024-11-24 23:47:04 +08:00

13 lines
374 B
Bash

#!/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
}