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 # functions
printerr() {
"${libexec}"/utils/printerr "$1"
}
require_dependency() { require_dependency() {
deps=$1 deps=$1
for dep in $deps; do for dep in $deps; do
@ -23,10 +27,6 @@ require_dependency() {
done done
} }
printerr() {
"${libexec}"/utils/printerr "$1"
}
## ##
# main # main
i=1 i=1