Define printerr before require_dependency

This commit is contained in:
0x1eef 2024-05-23 00:34:21 -03:00
parent 2e4a192656
commit 9f8afa04d5

View file

@ -13,6 +13,10 @@ libexec=$(realpath "$(dirname "$0")")/../libexec/portzap
##
# functions
printerr() {
"${libexec}"/utils/printerr "$1"
}
require_dependency() {
deps=$1
for dep in $deps; do
@ -23,10 +27,6 @@ require_dependency() {
done
}
printerr() {
"${libexec}"/utils/printerr "$1"
}
##
# main
i=1