helpers misc

This commit is contained in:
Anthony Axenov 2023-08-31 12:46:13 +08:00
parent f2bf5d45ac
commit f8f3210585
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC

View File

@ -57,7 +57,7 @@ symlink() {
} }
download() { download() {
require wget 1 require wget
wget "$1" -O "$2" wget "$1" -O "$2"
} }
@ -167,7 +167,7 @@ print() {
debug() { debug() {
if [ "$2" ]; then if [ "$2" ]; then
print "${DIM}${BOLD}${RESET}${DIM} ${FUNCNAME[1]:-?}():${BASH_LINENO:-?}\t$1 " print "${DIM}${BOLD}${RESET}${DIM}${FUNCNAME[1]:-?}():${BASH_LINENO:-?}\t$1 "
else else
print "${DIM}${BOLD}${RESET}${DIM}$1 " print "${DIM}${BOLD}${RESET}${DIM}$1 "
fi fi